﻿namespace WinForms.ControlList.Finance
{
    using Bll.Guest;
    using Bll.Sales;
    using Bll.Systems;
    using Library;
    using Microsoft.Office.Interop.Excel;
    using Model.Guest;
    using Model.Systems;
    using PublicStaticClass;
    using PublicStaticClass.UIControl;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.ControlList.Sales;
    using WinForms.Properties;

    public class FrmSalesStatList : WindowBase
    {
        private DataGridViewTextBoxColumn AllMoney;
        private DataGridViewTextBoxColumn Amount;
        private DataGridViewTextBoxColumn AmoutMoney;
        private DataGridViewTextBoxColumn AmoutUnit;
        private System.Windows.Forms.Button btn_BuildGuestSale;
        private System.Windows.Forms.Button btn_BuildLiRun;
        private System.Windows.Forms.Button btn_BuildSalesExcel;
        private System.Windows.Forms.Button btn_GuestSearch;
        private System.Windows.Forms.Button btn_GuestSearchHidden;
        private System.Windows.Forms.Button btn_LiRunTongJi;
        private System.Windows.Forms.Button btn_PrintKeHuGouHuo;
        private System.Windows.Forms.Button btn_PrintSalesYeJi;
        private System.Windows.Forms.Button btn_PrintSend;
        private System.Windows.Forms.Button btn_RiBaoPrint;
        private System.Windows.Forms.Button btn_SalesPerformanceSearch;
        private System.Windows.Forms.Button btn_SendGoodsSearch;
        private System.Windows.Forms.Button btn_SendGoodsSearchHidden;
        private System.Windows.Forms.Button btn_SendGuest;
        private System.Windows.Forms.Button btn_SPSearchHidden;
        private System.Windows.Forms.Button btnRiBaoBuildExcel;
        private System.Windows.Forms.Button btnRiBaoSearch;
        private System.Windows.Forms.Button btnRiBaoSearchHidden;
        private System.Windows.Forms.Button btnSalesSearch;
        private System.Windows.Forms.Button btnSalesSearchHidden;
        private DataGridViewTextBoxColumn CommName;
        private IContainer components = null;
        private DataGridViewTextBoxColumn Cost;
        private DataGridViewTextBoxColumn CreateTime;
        private DataGridView DataGridList;
        private DataGridView DataGridListGuest;
        private DataGridView DataGridSalesP;
        private DataGridView DataGridSendGoods;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn25;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
        private DateTimePicker dateTime_BeginTime;
        private DateTimePicker dateTime_EndTime;
        private DateTimePicker dateTime_SalesPBeginTime;
        private DateTimePicker dateTime_SalesPEndTime;
        private DateTimePicker dateTime_SendGoodBeginTime;
        private DateTimePicker dateTime_SendGoodEndTime;
        private DataGridViewTextBoxColumn dgAddresses;
        private DataGridViewTextBoxColumn dgChainNum;
        private DataGridViewTextBoxColumn dgCheckMan;
        private DataGridViewTextBoxColumn dgCheckTime;
        private DataGridViewTextBoxColumn dgClearingType;
        private DataGridViewTextBoxColumn dgCostMoney;
        private DataGridViewTextBoxColumn dgCreateTime;
        private DataGridViewTextBoxColumn dgDistrType;
        private DataGridViewTextBoxColumn dgFollowUpDeal;
        private DataGridViewTextBoxColumn dgGuestId;
        private DataGridViewTextBoxColumn dgInvoicingNum;
        private DataGridViewTextBoxColumn dgIsBlackOut;
        private DataGridViewTextBoxColumn dgIsCheck;
        private DataGridViewTextBoxColumn dgIsInvoicing;
        private DataGridViewTextBoxColumn dgIsOut;
        private DataGridViewTextBoxColumn dgIsRequestRetrun;
        private DataGridViewTextBoxColumn dgIsReturn;
        private DataGridViewTextBoxColumn dgIsReview;
        private DataGridViewTextBoxColumn dgIsUseReturn;
        private DataGridViewTextBoxColumn dgLinkMan;
        private DataGridViewTextBoxColumn dgLinkTel;
        private DataGridViewTextBoxColumn dgLogisticsId;
        private DataGridViewTextBoxColumn dgLogisticsName;
        private DataGridViewTextBoxColumn dgLogisticsNum;
        private DataGridViewTextBoxColumn dgNotReason;
        private DataGridViewTextBoxColumn dgOpenType;
        private DataGridViewTextBoxColumn dgOrderNum;
        private DataGridViewTextBoxColumn dgOrdersId;
        private DataGridViewTextBoxColumn dgPaidMoney;
        private DataGridViewTextBoxColumn dgProcurementId;
        private DataGridViewTextBoxColumn dgReason;
        private DataGridViewTextBoxColumn dgRemark;
        private DataGridViewTextBoxColumn dgReturnMoney;
        private DataGridViewTextBoxColumn dgReturnTime;
        private DataGridViewTextBoxColumn dgReviewMan;
        private DataGridViewTextBoxColumn dgReviewTime;
        private DataGridViewTextBoxColumn dgSaleVtag;
        private DataGridViewTextBoxColumn dgSentProMoney;
        private DataGridViewTextBoxColumn dgShipmentsType;
        private DataGridViewTextBoxColumn dgToMeetMoney;
        private DataGridViewTextBoxColumn dgUserId;
        private DataGridViewTextBoxColumn dgZipCode;
        private DataGridViewTextBoxColumn Discount;
        private ComboBoxNew drp_GuestGrade;
        private ComboBox drp_GuestType;
        private DataGridViewTextBoxColumn GuestId;
        private DataGridViewTextBoxColumn GuestName;
        private DataGridViewTextBoxColumn GuestType;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.Label label17;
        private System.Windows.Forms.Label label19;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label9;
        private DataGridViewTextBoxColumn LastCreateTime;
        private System.Windows.Forms.Label lbl_CreateTime;
        private System.Windows.Forms.Label lbl_GuestGradeType;
        private System.Windows.Forms.Label lbl_GuestName;
        private System.Windows.Forms.Label lbl_GuestType;
        private System.Windows.Forms.Label lbl_GustSWhere;
        private System.Windows.Forms.Label lbl_Idcoument;
        private System.Windows.Forms.Label lbl_Moble;
        private System.Windows.Forms.Label lbl_RiBaoSWhere;
        private System.Windows.Forms.Label lbl_SalesSSWhere;
        private System.Windows.Forms.Label lblSalesWhere;
        private System.Windows.Forms.Label lblSendWhere;
        private System.Windows.Forms.Label lblWhere;
        private DataGridViewTextBoxColumn LiRun;
        private DataGridViewTextBoxColumn LotNum;
        private DataGridViewPrinter MyDataGridViewPrinter;
        private PrintDocument MyPrintDocument;
        private Navigator navigator_Page;
        private Navigator navigator_Page1;
        private Navigator navigator_Page2;
        private Navigator navigator_Page3;
        private Navigator navigator_Page4;
        private DataGridViewTextBoxColumn OrderNum;
        private DataGridViewTextBoxColumn OrdersId;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_GuestSearch;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_SalesP;
        private Panel pan_SendGoodSearch;
        private Panel pan_Top;
        private Panel pan_TopJianGe;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel_RiBaoBiaoSearch;
        private Panel panel1;
        private Panel panel10;
        private Panel panel100;
        private Panel panel101;
        private Panel panel102;
        private Panel panel11;
        private Panel panel12;
        private Panel panel13;
        private Panel panel14;
        private Panel panel15;
        private Panel panel16;
        private Panel panel17;
        private Panel panel18;
        private Panel panel19;
        private Panel panel2;
        private Panel panel20;
        private Panel panel21;
        private Panel panel22;
        private Panel panel23;
        private Panel panel24;
        private Panel panel25;
        private Panel panel26;
        private Panel panel27;
        private Panel panel28;
        private Panel panel29;
        private Panel panel3;
        private Panel panel30;
        private Panel panel31;
        private Panel panel32;
        private Panel panel33;
        private Panel panel34;
        private Panel panel35;
        private Panel panel36;
        private Panel panel37;
        private Panel panel38;
        private Panel panel39;
        private Panel panel4;
        private Panel panel40;
        private Panel panel41;
        private Panel panel42;
        private Panel panel43;
        private Panel panel44;
        private Panel panel45;
        private Panel panel46;
        private Panel panel47;
        private Panel panel48;
        private Panel panel49;
        private Panel panel5;
        private Panel panel50;
        private Panel panel51;
        private Panel panel52;
        private Panel panel53;
        private Panel panel54;
        private Panel panel55;
        private Panel panel56;
        private Panel panel57;
        private Panel panel58;
        private Panel panel59;
        private Panel panel6;
        private Panel panel60;
        private Panel panel61;
        private Panel panel62;
        private Panel panel63;
        private Panel panel64;
        private Panel panel65;
        private Panel panel66;
        private Panel panel67;
        private Panel panel68;
        private Panel panel69;
        private Panel panel7;
        private Panel panel70;
        private Panel panel71;
        private Panel panel72;
        private Panel panel73;
        private Panel panel74;
        private Panel panel75;
        private Panel panel76;
        private Panel panel77;
        private Panel panel78;
        private Panel panel79;
        private Panel panel8;
        private Panel panel80;
        private Panel panel81;
        private Panel panel82;
        private Panel panel83;
        private Panel panel84;
        private Panel panel85;
        private Panel panel86;
        private Panel panel87;
        private Panel panel88;
        private Panel panel89;
        private Panel panel9;
        private Panel panel90;
        private Panel panel91;
        private Panel panel92;
        private Panel panel96;
        private Panel panel97;
        private Panel panel98;
        private Panel panel99;
        private Panel PlSearch;
        private DataGridView RiBaoDataGridList;
        private DataGridViewTextBoxColumn SaleCommId;
        private SaveFileDialog saveFileDialog;
        private SaveFileDialog saveFileDialogGuest;
        private SaveFileDialog saveFileDialogRiBao;
        private SaveFileDialog saveFileDialogSaleUser;
        private SaveFileDialog saveFileDialogSendGuest;
        private DataGridViewTextBoxColumn SendUserId;
        private DataGridViewTextBoxColumn StandardMoney;
        private TabPage tab_GHFX;
        private TabPage tab_LrTj;
        private TabPage tab_Rbb;
        private TabPage tab_Sltj;
        private TabPage tab_Ywtj;
        private TabControl tabControl1;
        private DataGridViewTextBoxColumn ToMeetMoney;
        private System.Windows.Forms.TextBox txt_BeginMoney;
        private System.Windows.Forms.TextBox txt_EndMoney;
        private System.Windows.Forms.TextBox txt_GuestDName;
        private System.Windows.Forms.TextBox txt_GuestName;
        private System.Windows.Forms.TextBox txt_IdDocument;
        private System.Windows.Forms.TextBox txt_Moble;
        private System.Windows.Forms.TextBox txt_RiBaoBeginTime;
        private System.Windows.Forms.TextBox txt_RiBaoEndTime;
        private System.Windows.Forms.TextBox txt_RiBaoGuestName;
        private System.Windows.Forms.TextBox txt_RiBaoIdcomuent;
        private System.Windows.Forms.TextBox txt_SendGuestName;
        private System.Windows.Forms.TextBox txt_UserName;
        private DataGridViewTextBoxColumn UserId;

        public FrmSalesStatList()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            UserEnt loginUser = PublicAppliction.LoginUser;
            this.dateTime_BeginTime.Value = DateTime.Now.AddMonths(-1);
            this.dateTime_EndTime.Value = DateTime.Now;
            this.btnSalesSearch_Click(null, null);
            this.btnRiBaoSearch_Click(null, null);
            this.dateTime_SalesPBeginTime.Value.AddDays(-7.0);
            this.SalesPerformanceLoad();
            this.drp_GuestGrade.BeginUpdate();
            System.Data.DataTable list = GuestGradeBll.GetList(" ChainNum=" + loginUser.ChainNum);
            this.drp_GuestGrade.Items.Clear();
            foreach (DataRow row in list.Rows)
            {
                this.drp_GuestGrade.AddItem(row["GuestName"].ToString(), row["GuestTypeId"].ToString());
            }
            this.drp_GuestGrade.EndUpdate();
            this.GuestLoad();
            this.dateTime_SendGoodBeginTime.Value.AddDays(-7.0);
            this.SendsDataLoad();
            this.InitPage();
        }

        private void btn_BuildGuestSale_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogGuest.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable dt = new System.Data.DataTable();
                dt = GuestBll.SearchData(this.lbl_GustSWhere.Text);
                dt.Columns.Remove("GuestId");
                dt.Columns.Add("GuestId");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    dt.Rows[i]["GuestId"] = i + 1;
                }
                BuildNewExcel.outPutExcel(this.DataGridListGuest, dt, this.saveFileDialogGuest.FileName);
                if (MessageBox.Show("客户销售报表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogGuest.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_BuildLiRun_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable dt = OrdersCommBll.SearchData(this.lblSalesWhere.Text);
                this.ExcelDataZhuanHuan(ref dt);
                BuildNewExcel.outPutExcel(this.DataGridList, dt, this.saveFileDialog.FileName);
                if (MessageBox.Show("销售利润表已经生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialog.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_BuildSalesExcel_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogSaleUser.ShowDialog() == DialogResult.OK)
            {
                this.lbl_SalesSSWhere.Text = this.lbl_SalesSSWhere.Text.Replace("where", "");
                System.Data.DataTable dt = UserBll.SearchSaleData(this.lbl_SalesSSWhere.Text);
                dt.Columns.Remove("UserId");
                dt.Columns.Add("UserId");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    dt.Rows[i]["UserId"] = i + 1;
                }
                BuildNewExcel.outPutExcel(this.DataGridSalesP, dt, this.saveFileDialogSaleUser.FileName);
                if (MessageBox.Show("员工业绩报表已经生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogSaleUser.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_GuestSearch_Click(object sender, EventArgs e)
        {
            if ((this.drp_GuestType.Text != "请选择") && (this.drp_GuestType.Text != ""))
            {
                if (this.drp_GuestType.Text == "个人")
                {
                    this.lbl_GustSWhere.Text = this.lbl_GustSWhere.Text + " and GuestType like '%1%'";
                }
                else
                {
                    this.lbl_GustSWhere.Text = this.lbl_GustSWhere.Text + " and GuestType like '%2%'";
                }
            }
            if (this.drp_GuestGrade.SelectValueNew != "")
            {
                this.lbl_GustSWhere.Text = this.lbl_GustSWhere.Text + " and GuestTypeId like '%" + this.drp_GuestGrade.SelectValueNew + "%'";
            }
            if (this.txt_GuestDName.Text.Trim() != "")
            {
                this.lbl_GustSWhere.Text = this.lbl_GustSWhere.Text + " and GuestName like '%" + this.txt_GuestDName.Text.Trim() + "%'";
            }
            if (this.txt_Moble.Text != "")
            {
                this.lbl_GustSWhere.Text = this.lbl_GustSWhere.Text + " and Tel like '%" + this.txt_Moble.Text.Trim() + "%'";
            }
            this.GuestLoad();
        }

        private void btn_GuestSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.pan_GuestSearch.Visible)
            {
                this.btn_GuestSearchHidden.Text = "显示查询";
                this.pan_GuestSearch.Visible = false;
            }
            else
            {
                this.btn_GuestSearchHidden.Text = "隐藏查询";
                this.pan_GuestSearch.Visible = true;
            }
        }

        private void btn_LiRunTongJi_Click(object sender, EventArgs e)
        {
            if (this.SetupTheLiRunTongJiiPrinting())
            {
                System.Data.DataTable dt = OrdersCommBll.SearchData(this.lblSalesWhere.Text);
                this.ExcelDataZhuanHuan(ref dt);
                this.DataGridList.DataSource = dt;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.SalesDataLoad();
            }
        }

        private void btn_PrintKeHuGouHuo_Click(object sender, EventArgs e)
        {
            if (this.SetupTheGuestBuyPrinting())
            {
                System.Data.DataTable table = new System.Data.DataTable();
                table = GuestBll.SearchData(this.lbl_GustSWhere.Text);
                table.Columns.Remove("GuestId");
                table.Columns.Add("GuestId");
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    table.Rows[i]["GuestId"] = i + 1;
                }
                this.DataGridListGuest.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.GuestLoad();
            }
        }

        private void btn_PrintSalesYeJi_Click(object sender, EventArgs e)
        {
            if (this.SetupTheXiaoShouYeJiPrinting())
            {
                this.lbl_SalesSSWhere.Text = this.lbl_SalesSSWhere.Text.Replace("where", "");
                System.Data.DataTable table = UserBll.SearchSaleData(this.lbl_SalesSSWhere.Text);
                table.Columns.Remove("UserId");
                table.Columns.Add("UserId");
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    table.Rows[i]["UserId"] = i + 1;
                }
                this.DataGridSalesP.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.SalesPerformanceLoad();
            }
        }

        private void btn_PrintSend_Click(object sender, EventArgs e)
        {
            if (this.SetupTheGuestSendPrinting())
            {
                System.Data.DataTable table = new System.Data.DataTable();
                table = OrdersBll.SelectSendsPresent(this.lblSendWhere.Text);
                table.Columns.Remove("OrdersId");
                table.Columns.Add("OrdersId");
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    table.Rows[i]["OrdersId"] = i + 1;
                }
                this.DataGridSendGoods.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.SendsDataLoad();
            }
        }

        private void btn_RiBaoPrint_Click(object sender, EventArgs e)
        {
            if (this.SetupTheXiaoShouRiBaoPrinting())
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text.Replace("where", "");
                System.Data.DataTable list = OrdersBll.GetList(this.lbl_RiBaoSWhere.Text);
                this.ExcelRiBaoDataZhuanHuan(ref list);
                this.RiBaoDataGridList.DataSource = list;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.RiBaoDataGridLoad();
            }
        }

        private void btn_SalesPerformanceSearch_Click(object sender, EventArgs e)
        {
            this.lbl_SalesSSWhere.Text = "";
            if (this.txt_UserName.Text.Trim() != "")
            {
                this.lbl_SalesSSWhere.Text = " and UserName like '%" + this.txt_UserName.Text.Trim() + "%'";
            }
            if ((this.dateTime_SalesPBeginTime.Value.ToString() != "") && (this.dateTime_SalesPEndTime.Value.ToString() != ""))
            {
                string text = this.lbl_SalesSSWhere.Text;
                this.lbl_SalesSSWhere.Text = text + " and CreateTime between #" + this.dateTime_SalesPBeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "# and #" + this.dateTime_SalesPEndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_SalesPBeginTime.Value.ToString() == "") && (this.dateTime_SalesPEndTime.Value.ToString() != ""))
            {
                this.lbl_SalesSSWhere.Text = this.lbl_SalesSSWhere.Text + " and  CreateTime <=#" + this.dateTime_SalesPEndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_SalesPBeginTime.Value.ToString() != "") && (this.dateTime_SalesPEndTime.Value.ToString() == ""))
            {
                this.lbl_SalesSSWhere.Text = this.lbl_SalesSSWhere.Text + " and  CreateTime >=#" + this.dateTime_SalesPBeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "#";
            }
            this.SalesPerformanceLoad();
        }

        private void btn_SendGoodsSearch_Click(object sender, EventArgs e)
        {
            this.lblSendWhere.Text = "";
            if (this.txt_SendGuestName.Text.Trim() != "")
            {
                this.lblSendWhere.Text = " and GuestName like '%" + this.txt_SendGuestName.Text.Trim() + "%'";
            }
            if ((this.dateTime_SendGoodBeginTime.Value.ToString() != "") && (this.dateTime_SendGoodEndTime.Value.ToString() != ""))
            {
                string text = this.lblSendWhere.Text;
                this.lblSendWhere.Text = text + " and CreateTime between #" + this.dateTime_SendGoodBeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "# and #" + this.dateTime_SendGoodEndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_SendGoodBeginTime.Value.ToString() == "") && (this.dateTime_SendGoodEndTime.Value.ToString() != ""))
            {
                this.lblSendWhere.Text = this.lblSendWhere.Text + " and  CreateTime <=#" + this.dateTime_SendGoodEndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_SendGoodBeginTime.Value.ToString() != "") && (this.dateTime_SendGoodEndTime.Value.ToString() == ""))
            {
                this.lblSendWhere.Text = this.lblSendWhere.Text + " and  CreateTime >=#" + this.dateTime_SendGoodBeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "#";
            }
            this.SendsDataLoad();
        }

        private void btn_SendGoodsSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.pan_SendGoodSearch.Visible)
            {
                this.btn_SendGoodsSearchHidden.Text = "显示查询";
                this.pan_SendGoodSearch.Visible = false;
            }
            else
            {
                this.btn_SendGoodsSearchHidden.Text = "隐藏查询";
                this.pan_SendGoodSearch.Visible = true;
            }
        }

        private void btn_SendGuest_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogSendGuest.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable dt = new System.Data.DataTable();
                dt = OrdersBll.SelectSendsPresent(this.lblSendWhere.Text);
                dt.Columns.Remove("OrdersId");
                dt.Columns.Add("OrdersId");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    dt.Rows[i]["OrdersId"] = i + 1;
                }
                BuildNewExcel.outPutExcel(this.DataGridSendGoods, dt, this.saveFileDialogSendGuest.FileName);
                if (MessageBox.Show("送礼报表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogSendGuest.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_SPSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.pan_SalesP.Visible)
            {
                this.btn_SPSearchHidden.Text = "显示查询";
                this.pan_SalesP.Visible = false;
            }
            else
            {
                this.btn_SPSearchHidden.Text = "隐藏查询";
                this.pan_SalesP.Visible = true;
            }
        }

        private void btnRiBaoBuildExcel_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogRiBao.ShowDialog() == DialogResult.OK)
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text.Replace("where", "");
                System.Data.DataTable list = OrdersBll.GetList(this.lbl_RiBaoSWhere.Text);
                this.ExcelRiBaoDataZhuanHuan(ref list);
                BuildNewExcel.outPutExcel(this.RiBaoDataGridList, list, this.saveFileDialogRiBao.FileName);
                if (MessageBox.Show("销售日表已经生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogRiBao.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btnRiBaoSearch_Click(object sender, EventArgs e)
        {
            UserEnt loginUser = PublicAppliction.LoginUser;
            this.lbl_RiBaoSWhere.Text = " where ChainNum=" + loginUser.ChainNum;
            string text = this.lbl_RiBaoSWhere.Text;
            this.lbl_RiBaoSWhere.Text = text + " and CreateTime between #" + DateTime.Now.ToString("yyyy-MM-dd 00:00:00") + "# and #" + DateTime.Now.ToString("yyyy-MM-dd 23:59:59") + "#";
            if (this.txt_RiBaoIdcomuent.Text != "")
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text + " and OrderNum like '%" + this.txt_RiBaoIdcomuent.Text + "%'";
            }
            if ((this.txt_RiBaoBeginTime.Text != "") && (this.txt_RiBaoEndTime.Text != ""))
            {
                text = this.lbl_RiBaoSWhere.Text;
                this.lbl_RiBaoSWhere.Text = text + " and ToMeetMoney>=" + this.txt_RiBaoBeginTime.Text + " and ToMeetMoney<=" + this.txt_RiBaoEndTime.Text;
            }
            else if ((this.txt_RiBaoBeginTime.Text == "") && (this.txt_RiBaoEndTime.Text != ""))
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text + " and ToMeetMoney<=" + this.txt_RiBaoEndTime.Text;
            }
            else if ((this.txt_RiBaoBeginTime.Text != "") && (this.txt_RiBaoEndTime.Text == ""))
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text + " and ToMeetMoney>=" + this.txt_RiBaoBeginTime.Text;
            }
            if (this.txt_RiBaoGuestName.Text != "")
            {
                this.lbl_RiBaoSWhere.Text = this.lbl_RiBaoSWhere.Text + " and GuestName like '%" + this.txt_RiBaoGuestName.Text + "%'";
            }
            this.RiBaoDataGridLoad();
        }

        private void btnRiBaoSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.panel_RiBaoBiaoSearch.Visible)
            {
                this.btnRiBaoSearchHidden.Text = "显示查询";
                this.panel_RiBaoBiaoSearch.Visible = false;
            }
            else
            {
                this.btnRiBaoSearchHidden.Text = "隐藏查询";
                this.panel_RiBaoBiaoSearch.Visible = true;
            }
        }

        private void btnSalesSearch_Click(object sender, EventArgs e)
        {
            string text;
            this.lblSalesWhere.Text = "";
            if (this.txt_IdDocument.Text != "")
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and OrderNum like '%" + this.txt_IdDocument.Text + "%'";
            }
            if ((this.txt_BeginMoney.Text != "") && (this.txt_EndMoney.Text != ""))
            {
                text = this.lblSalesWhere.Text;
                this.lblSalesWhere.Text = text + " and ToMeetMoney>=" + this.txt_BeginMoney.Text + " and ToMeetMoney<=" + this.txt_EndMoney.Text;
            }
            else if ((this.txt_BeginMoney.Text == "") && (this.txt_EndMoney.Text != ""))
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and ToMeetMoney<=" + this.txt_EndMoney.Text;
            }
            else if ((this.txt_BeginMoney.Text != "") && (this.txt_EndMoney.Text == ""))
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and ToMeetMoney>=" + this.txt_BeginMoney.Text;
            }
            if (this.txt_GuestName.Text != "")
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and GuestName like '%" + this.txt_IdDocument.Text + "%'";
            }
            if ((this.dateTime_BeginTime.Value.ToString() != "") && (this.dateTime_EndTime.Value.ToString() != ""))
            {
                text = this.lblSalesWhere.Text;
                this.lblSalesWhere.Text = text + " and CreateTime between #" + this.dateTime_BeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "# and #" + this.dateTime_EndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_BeginTime.Value.ToString() == "") && (this.dateTime_EndTime.Value.ToString() != ""))
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and  CreateTime <=#" + this.dateTime_EndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            else if ((this.dateTime_BeginTime.Value.ToString() != "") && (this.dateTime_EndTime.Value.ToString() == ""))
            {
                this.lblSalesWhere.Text = this.lblSalesWhere.Text + " and  CreateTime >=#" + this.dateTime_BeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "#";
            }
            this.SalesDataLoad();
        }

        private void btnSalesSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.PlSearch.Visible)
            {
                this.btnSalesSearchHidden.Text = "显示查询";
                this.PlSearch.Visible = false;
            }
            else
            {
                this.btnSalesSearchHidden.Text = "隐藏查询";
                this.PlSearch.Visible = true;
            }
        }

        protected void DataZhuanHuan(ref System.Data.DataTable dt)
        {
            dt.Columns["AmoutUnit"].ColumnName = "AmoutUnit1";
            dt.Columns.Add("AllMoney");
            dt.Columns.Add("LiRun");
            dt.Columns.Add("AmoutUnit");
            foreach (DataRow row in dt.Rows)
            {
                row["AllMoney"] = (decimal.Parse(row["StandardMoney"].ToString()) * decimal.Parse(row["Discount"].ToString())) * decimal.Parse(row["Amount"].ToString());
                row["LiRun"] = decimal.Parse(row["AllMoney"].ToString()) - (decimal.Parse(row["Cost"].ToString()) * decimal.Parse(row["Amount"].ToString()));
                DataRow[] rowArray = PublicAppliction.ParDt.Select("ParId=" + row["AmoutUnit1"].ToString());
                if (rowArray.Length > 0)
                {
                    row["AmoutUnit"] = rowArray[0]["ParName"].ToString();
                }
            }
            dt.Columns.Remove("AmoutUnit1");
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        protected void ExcelDataZhuanHuan(ref System.Data.DataTable dt)
        {
            dt.Columns.Remove("SaleCommId");
            dt.Columns.Add("AllMoney");
            dt.Columns.Add("LiRun");
            dt.Columns.Add("SaleCommId");
            int num = 1;
            foreach (DataRow row in dt.Rows)
            {
                row["SaleCommId"] = num;
                row["AllMoney"] = (decimal.Parse(row["StandardMoney"].ToString()) * decimal.Parse(row["Discount"].ToString())) * decimal.Parse(row["Amount"].ToString());
                row["LiRun"] = decimal.Parse(row["AllMoney"].ToString()) - (decimal.Parse(row["Cost"].ToString()) * decimal.Parse(row["Amount"].ToString()));
                num++;
            }
        }

        protected void ExcelRiBaoDataZhuanHuan(ref System.Data.DataTable dt)
        {
            dt.Columns.Remove("OrdersId");
            dt.Columns["GuestId"].ColumnName = "GuestId1";
            dt.Columns["UserId"].ColumnName = "UserId1";
            dt.Columns.Add("GuestId");
            dt.Columns.Add("UserId");
            dt.Columns.Add("OrdersId");
            int num = 1;
            foreach (DataRow row in dt.Rows)
            {
                GuestEnt model = GuestBll.GetModel(int.Parse(row["GuestId1"].ToString()));
                if (model != null)
                {
                    row["GuestId"] = model.GuestName;
                }
                DataRow[] rowArray = PublicAppliction.UserDt.Select("userid=" + row["UserId1"].ToString());
                if (rowArray.Length > 0)
                {
                    row["UserId"] = rowArray[0]["UserName"].ToString();
                }
                row["OrdersId"] = num;
                num++;
            }
            dt.Columns.Remove("GuestId1");
            dt.Columns.Remove("UserId1");
        }

        private void GuestLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page3.PageCurrent;
                if (this.lbl_GustSWhere.Text != "")
                {
                    table = GuestBll.SearchData(0x11, pageCurrent, this.lbl_GustSWhere.Text);
                }
                else
                {
                    table = GuestBll.SearchData(0x11, pageCurrent, "");
                }
                this.DataGridListGuest.AutoGenerateColumns = false;
                this.DataGridListGuest.DataSource = table;
                this.navigator_Page3.DataSource = table;
                this.navigator_Page3.RowCount = table.Rows.Count;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private void InitializeComponent()
        {
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            DataGridViewCellStyle style2 = new DataGridViewCellStyle();
            DataGridViewCellStyle style3 = new DataGridViewCellStyle();
            DataGridViewCellStyle style4 = new DataGridViewCellStyle();
            DataGridViewCellStyle style5 = new DataGridViewCellStyle();
            DataGridViewCellStyle style6 = new DataGridViewCellStyle();
            DataGridViewCellStyle style7 = new DataGridViewCellStyle();
            DataGridViewCellStyle style8 = new DataGridViewCellStyle();
            DataGridViewCellStyle style9 = new DataGridViewCellStyle();
            DataGridViewCellStyle style10 = new DataGridViewCellStyle();
            DataGridViewCellStyle style11 = new DataGridViewCellStyle();
            DataGridViewCellStyle style12 = new DataGridViewCellStyle();
            DataGridViewCellStyle style13 = new DataGridViewCellStyle();
            DataGridViewCellStyle style14 = new DataGridViewCellStyle();
            DataGridViewCellStyle style15 = new DataGridViewCellStyle();
            DataGridViewCellStyle style16 = new DataGridViewCellStyle();
            DataGridViewCellStyle style17 = new DataGridViewCellStyle();
            DataGridViewCellStyle style18 = new DataGridViewCellStyle();
            DataGridViewCellStyle style19 = new DataGridViewCellStyle();
            DataGridViewCellStyle style20 = new DataGridViewCellStyle();
            DataGridViewCellStyle style21 = new DataGridViewCellStyle();
            DataGridViewCellStyle style22 = new DataGridViewCellStyle();
            DataGridViewCellStyle style23 = new DataGridViewCellStyle();
            DataGridViewCellStyle style24 = new DataGridViewCellStyle();
            DataGridViewCellStyle style25 = new DataGridViewCellStyle();
            DataGridViewCellStyle style26 = new DataGridViewCellStyle();
            DataGridViewCellStyle style27 = new DataGridViewCellStyle();
            DataGridViewCellStyle style28 = new DataGridViewCellStyle();
            DataGridViewCellStyle style29 = new DataGridViewCellStyle();
            DataGridViewCellStyle style30 = new DataGridViewCellStyle();
            DataGridViewCellStyle style31 = new DataGridViewCellStyle();
            DataGridViewCellStyle style32 = new DataGridViewCellStyle();
            DataGridViewCellStyle style33 = new DataGridViewCellStyle();
            DataGridViewCellStyle style34 = new DataGridViewCellStyle();
            DataGridViewCellStyle style35 = new DataGridViewCellStyle();
            DataGridViewCellStyle style36 = new DataGridViewCellStyle();
            DataGridViewCellStyle style37 = new DataGridViewCellStyle();
            DataGridViewCellStyle style38 = new DataGridViewCellStyle();
            DataGridViewCellStyle style39 = new DataGridViewCellStyle();
            DataGridViewCellStyle style40 = new DataGridViewCellStyle();
            DataGridViewCellStyle style41 = new DataGridViewCellStyle();
            DataGridViewCellStyle style42 = new DataGridViewCellStyle();
            DataGridViewCellStyle style43 = new DataGridViewCellStyle();
            DataGridViewCellStyle style44 = new DataGridViewCellStyle();
            DataGridViewCellStyle style45 = new DataGridViewCellStyle();
            DataGridViewCellStyle style46 = new DataGridViewCellStyle();
            DataGridViewCellStyle style47 = new DataGridViewCellStyle();
            DataGridViewCellStyle style48 = new DataGridViewCellStyle();
            DataGridViewCellStyle style49 = new DataGridViewCellStyle();
            DataGridViewCellStyle style50 = new DataGridViewCellStyle();
            DataGridViewCellStyle style51 = new DataGridViewCellStyle();
            DataGridViewCellStyle style52 = new DataGridViewCellStyle();
            DataGridViewCellStyle style53 = new DataGridViewCellStyle();
            DataGridViewCellStyle style54 = new DataGridViewCellStyle();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.tabControl1 = new TabControl();
            this.tab_LrTj = new TabPage();
            this.DataGridList = new DataGridView();
            this.SaleCommId = new DataGridViewTextBoxColumn();
            this.OrderNum = new DataGridViewTextBoxColumn();
            this.LotNum = new DataGridViewTextBoxColumn();
            this.GuestName = new DataGridViewTextBoxColumn();
            this.CommName = new DataGridViewTextBoxColumn();
            this.StandardMoney = new DataGridViewTextBoxColumn();
            this.Discount = new DataGridViewTextBoxColumn();
            this.AmoutMoney = new DataGridViewTextBoxColumn();
            this.Cost = new DataGridViewTextBoxColumn();
            this.Amount = new DataGridViewTextBoxColumn();
            this.AmoutUnit = new DataGridViewTextBoxColumn();
            this.AllMoney = new DataGridViewTextBoxColumn();
            this.LiRun = new DataGridViewTextBoxColumn();
            this.CreateTime = new DataGridViewTextBoxColumn();
            this.panel13 = new Panel();
            this.panel10 = new Panel();
            this.panel12 = new Panel();
            this.lblSalesWhere = new System.Windows.Forms.Label();
            this.lblWhere = new System.Windows.Forms.Label();
            this.panel11 = new Panel();
            this.navigator_Page = new Navigator();
            this.panel9 = new Panel();
            this.PlSearch = new Panel();
            this.panel24 = new Panel();
            this.label2 = new System.Windows.Forms.Label();
            this.dateTime_EndTime = new DateTimePicker();
            this.dateTime_BeginTime = new DateTimePicker();
            this.panel25 = new Panel();
            this.lbl_CreateTime = new System.Windows.Forms.Label();
            this.panel18 = new Panel();
            this.txt_GuestName = new System.Windows.Forms.TextBox();
            this.panel21 = new Panel();
            this.lbl_GuestName = new System.Windows.Forms.Label();
            this.panel19 = new Panel();
            this.txt_EndMoney = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.txt_BeginMoney = new System.Windows.Forms.TextBox();
            this.panel20 = new Panel();
            this.label3 = new System.Windows.Forms.Label();
            this.panel22 = new Panel();
            this.txt_IdDocument = new System.Windows.Forms.TextBox();
            this.panel23 = new Panel();
            this.lbl_Idcoument = new System.Windows.Forms.Label();
            this.panel8 = new Panel();
            this.panel1 = new Panel();
            this.panel92 = new Panel();
            this.btn_LiRunTongJi = new System.Windows.Forms.Button();
            this.panel89 = new Panel();
            this.btn_BuildLiRun = new System.Windows.Forms.Button();
            this.panel7 = new Panel();
            this.btnSalesSearch = new System.Windows.Forms.Button();
            this.panel16 = new Panel();
            this.btnSalesSearchHidden = new System.Windows.Forms.Button();
            this.panel3 = new Panel();
            this.panel2 = new Panel();
            this.pan_TopJianGe = new Panel();
            this.tab_Rbb = new TabPage();
            this.RiBaoDataGridList = new DataGridView();
            this.OrdersId = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.GuestId = new DataGridViewTextBoxColumn();
            this.UserId = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.ToMeetMoney = new DataGridViewTextBoxColumn();
            this.panel44 = new Panel();
            this.panel41 = new Panel();
            this.panel42 = new Panel();
            this.lbl_RiBaoSWhere = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.panel43 = new Panel();
            this.navigator_Page1 = new Navigator();
            this.panel32 = new Panel();
            this.panel_RiBaoBiaoSearch = new Panel();
            this.panel35 = new Panel();
            this.txt_RiBaoGuestName = new System.Windows.Forms.TextBox();
            this.panel36 = new Panel();
            this.label7 = new System.Windows.Forms.Label();
            this.panel37 = new Panel();
            this.txt_RiBaoEndTime = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.txt_RiBaoBeginTime = new System.Windows.Forms.TextBox();
            this.panel38 = new Panel();
            this.label9 = new System.Windows.Forms.Label();
            this.panel39 = new Panel();
            this.txt_RiBaoIdcomuent = new System.Windows.Forms.TextBox();
            this.panel40 = new Panel();
            this.label10 = new System.Windows.Forms.Label();
            this.panel31 = new Panel();
            this.panel5 = new Panel();
            this.panel28 = new Panel();
            this.btn_RiBaoPrint = new System.Windows.Forms.Button();
            this.panel27 = new Panel();
            this.btnRiBaoBuildExcel = new System.Windows.Forms.Button();
            this.panel6 = new Panel();
            this.btnRiBaoSearch = new System.Windows.Forms.Button();
            this.panel14 = new Panel();
            this.btnRiBaoSearchHidden = new System.Windows.Forms.Button();
            this.panel29 = new Panel();
            this.panel30 = new Panel();
            this.panel4 = new Panel();
            this.tab_Ywtj = new TabPage();
            this.DataGridSalesP = new DataGridView();
            this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn8 = new DataGridViewTextBoxColumn();
            this.panel60 = new Panel();
            this.panel57 = new Panel();
            this.panel58 = new Panel();
            this.lbl_SalesSSWhere = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.panel59 = new Panel();
            this.navigator_Page2 = new Navigator();
            this.panel56 = new Panel();
            this.pan_SalesP = new Panel();
            this.panel50 = new Panel();
            this.label5 = new System.Windows.Forms.Label();
            this.dateTime_SalesPEndTime = new DateTimePicker();
            this.dateTime_SalesPBeginTime = new DateTimePicker();
            this.panel51 = new Panel();
            this.label6 = new System.Windows.Forms.Label();
            this.panel54 = new Panel();
            this.txt_UserName = new System.Windows.Forms.TextBox();
            this.panel55 = new Panel();
            this.label13 = new System.Windows.Forms.Label();
            this.panel48 = new Panel();
            this.panel17 = new Panel();
            this.panel45 = new Panel();
            this.btn_PrintSalesYeJi = new System.Windows.Forms.Button();
            this.panel34 = new Panel();
            this.btn_BuildSalesExcel = new System.Windows.Forms.Button();
            this.panel26 = new Panel();
            this.btn_SalesPerformanceSearch = new System.Windows.Forms.Button();
            this.panel33 = new Panel();
            this.btn_SPSearchHidden = new System.Windows.Forms.Button();
            this.panel46 = new Panel();
            this.panel47 = new Panel();
            this.panel15 = new Panel();
            this.tab_GHFX = new TabPage();
            this.DataGridListGuest = new DataGridView();
            this.dataGridViewTextBoxColumn9 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn10 = new DataGridViewTextBoxColumn();
            this.GuestType = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn11 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn12 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn13 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn14 = new DataGridViewTextBoxColumn();
            this.LastCreateTime = new DataGridViewTextBoxColumn();
            this.panel80 = new Panel();
            this.panel77 = new Panel();
            this.panel78 = new Panel();
            this.lbl_GustSWhere = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.panel79 = new Panel();
            this.navigator_Page3 = new Navigator();
            this.panel76 = new Panel();
            this.pan_GuestSearch = new Panel();
            this.panel68 = new Panel();
            this.drp_GuestType = new ComboBox();
            this.panel69 = new Panel();
            this.lbl_GuestType = new System.Windows.Forms.Label();
            this.panel70 = new Panel();
            this.drp_GuestGrade = new ComboBoxNew();
            this.panel71 = new Panel();
            this.lbl_GuestGradeType = new System.Windows.Forms.Label();
            this.panel72 = new Panel();
            this.txt_Moble = new System.Windows.Forms.TextBox();
            this.panel73 = new Panel();
            this.lbl_Moble = new System.Windows.Forms.Label();
            this.panel74 = new Panel();
            this.txt_GuestDName = new System.Windows.Forms.TextBox();
            this.panel75 = new Panel();
            this.label12 = new System.Windows.Forms.Label();
            this.panel66 = new Panel();
            this.panel52 = new Panel();
            this.panel63 = new Panel();
            this.btn_PrintKeHuGouHuo = new System.Windows.Forms.Button();
            this.panel62 = new Panel();
            this.btn_BuildGuestSale = new System.Windows.Forms.Button();
            this.panel53 = new Panel();
            this.btn_GuestSearch = new System.Windows.Forms.Button();
            this.panel61 = new Panel();
            this.btn_GuestSearchHidden = new System.Windows.Forms.Button();
            this.panel64 = new Panel();
            this.panel65 = new Panel();
            this.panel49 = new Panel();
            this.tab_Sltj = new TabPage();
            this.DataGridSendGoods = new DataGridView();
            this.dataGridViewTextBoxColumn15 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn16 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn17 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn18 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn19 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn20 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn24 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn25 = new DataGridViewTextBoxColumn();
            this.SendUserId = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn28 = new DataGridViewTextBoxColumn();
            this.panel102 = new Panel();
            this.panel99 = new Panel();
            this.panel100 = new Panel();
            this.lblSendWhere = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.panel101 = new Panel();
            this.navigator_Page4 = new Navigator();
            this.panel98 = new Panel();
            this.pan_SendGoodSearch = new Panel();
            this.panel90 = new Panel();
            this.label16 = new System.Windows.Forms.Label();
            this.dateTime_SendGoodEndTime = new DateTimePicker();
            this.dateTime_SendGoodBeginTime = new DateTimePicker();
            this.panel91 = new Panel();
            this.label17 = new System.Windows.Forms.Label();
            this.panel96 = new Panel();
            this.txt_SendGuestName = new System.Windows.Forms.TextBox();
            this.panel97 = new Panel();
            this.label19 = new System.Windows.Forms.Label();
            this.panel88 = new Panel();
            this.panel81 = new Panel();
            this.panel85 = new Panel();
            this.btn_PrintSend = new System.Windows.Forms.Button();
            this.panel84 = new Panel();
            this.btn_SendGuest = new System.Windows.Forms.Button();
            this.panel82 = new Panel();
            this.btn_SendGoodsSearch = new System.Windows.Forms.Button();
            this.panel83 = new Panel();
            this.btn_SendGoodsSearchHidden = new System.Windows.Forms.Button();
            this.panel86 = new Panel();
            this.panel87 = new Panel();
            this.panel67 = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_DockLeft = new Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.saveFileDialog = new SaveFileDialog();
            this.saveFileDialogRiBao = new SaveFileDialog();
            this.saveFileDialogSaleUser = new SaveFileDialog();
            this.saveFileDialogGuest = new SaveFileDialog();
            this.saveFileDialogSendGuest = new SaveFileDialog();
            this.MyPrintDocument = new PrintDocument();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.tab_LrTj.SuspendLayout();
            ((ISupportInitialize) this.DataGridList).BeginInit();
            this.panel10.SuspendLayout();
            this.panel12.SuspendLayout();
            this.panel11.SuspendLayout();
            this.PlSearch.SuspendLayout();
            this.panel24.SuspendLayout();
            this.panel25.SuspendLayout();
            this.panel18.SuspendLayout();
            this.panel21.SuspendLayout();
            this.panel19.SuspendLayout();
            this.panel20.SuspendLayout();
            this.panel22.SuspendLayout();
            this.panel23.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel92.SuspendLayout();
            this.panel89.SuspendLayout();
            this.panel7.SuspendLayout();
            this.panel16.SuspendLayout();
            this.tab_Rbb.SuspendLayout();
            ((ISupportInitialize) this.RiBaoDataGridList).BeginInit();
            this.panel41.SuspendLayout();
            this.panel42.SuspendLayout();
            this.panel43.SuspendLayout();
            this.panel_RiBaoBiaoSearch.SuspendLayout();
            this.panel35.SuspendLayout();
            this.panel36.SuspendLayout();
            this.panel37.SuspendLayout();
            this.panel38.SuspendLayout();
            this.panel39.SuspendLayout();
            this.panel40.SuspendLayout();
            this.panel5.SuspendLayout();
            this.panel28.SuspendLayout();
            this.panel27.SuspendLayout();
            this.panel6.SuspendLayout();
            this.panel14.SuspendLayout();
            this.tab_Ywtj.SuspendLayout();
            ((ISupportInitialize) this.DataGridSalesP).BeginInit();
            this.panel57.SuspendLayout();
            this.panel58.SuspendLayout();
            this.panel59.SuspendLayout();
            this.pan_SalesP.SuspendLayout();
            this.panel50.SuspendLayout();
            this.panel51.SuspendLayout();
            this.panel54.SuspendLayout();
            this.panel55.SuspendLayout();
            this.panel17.SuspendLayout();
            this.panel45.SuspendLayout();
            this.panel34.SuspendLayout();
            this.panel26.SuspendLayout();
            this.panel33.SuspendLayout();
            this.tab_GHFX.SuspendLayout();
            ((ISupportInitialize) this.DataGridListGuest).BeginInit();
            this.panel77.SuspendLayout();
            this.panel78.SuspendLayout();
            this.panel79.SuspendLayout();
            this.pan_GuestSearch.SuspendLayout();
            this.panel68.SuspendLayout();
            this.panel69.SuspendLayout();
            this.panel70.SuspendLayout();
            this.panel71.SuspendLayout();
            this.panel72.SuspendLayout();
            this.panel73.SuspendLayout();
            this.panel74.SuspendLayout();
            this.panel75.SuspendLayout();
            this.panel52.SuspendLayout();
            this.panel63.SuspendLayout();
            this.panel62.SuspendLayout();
            this.panel53.SuspendLayout();
            this.panel61.SuspendLayout();
            this.tab_Sltj.SuspendLayout();
            ((ISupportInitialize) this.DataGridSendGoods).BeginInit();
            this.panel99.SuspendLayout();
            this.panel100.SuspendLayout();
            this.panel101.SuspendLayout();
            this.pan_SendGoodSearch.SuspendLayout();
            this.panel90.SuspendLayout();
            this.panel91.SuspendLayout();
            this.panel96.SuspendLayout();
            this.panel97.SuspendLayout();
            this.panel81.SuspendLayout();
            this.panel85.SuspendLayout();
            this.panel84.SuspendLayout();
            this.panel82.SuspendLayout();
            this.panel83.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new System.Drawing.Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x407, 0x201);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new System.Drawing.Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(0x405, 0x200);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.tabControl1);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new System.Drawing.Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(0x3f1, 0x1ec);
            this.pan_AllPlanes.TabIndex = 4;
            this.tabControl1.Controls.Add(this.tab_LrTj);
            this.tabControl1.Controls.Add(this.tab_Rbb);
            this.tabControl1.Controls.Add(this.tab_Ywtj);
            this.tabControl1.Controls.Add(this.tab_GHFX);
            this.tabControl1.Controls.Add(this.tab_Sltj);
            this.tabControl1.Dock = DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new Size(0x3f1, 0x1ec);
            this.tabControl1.TabIndex = 0;
            this.tab_LrTj.Controls.Add(this.DataGridList);
            this.tab_LrTj.Controls.Add(this.panel13);
            this.tab_LrTj.Controls.Add(this.panel10);
            this.tab_LrTj.Controls.Add(this.panel9);
            this.tab_LrTj.Controls.Add(this.PlSearch);
            this.tab_LrTj.Controls.Add(this.panel8);
            this.tab_LrTj.Controls.Add(this.panel1);
            this.tab_LrTj.Controls.Add(this.pan_TopJianGe);
            this.tab_LrTj.Location = new System.Drawing.Point(4, 0x15);
            this.tab_LrTj.Name = "tab_LrTj";
            this.tab_LrTj.Padding = new Padding(3);
            this.tab_LrTj.Size = new Size(0x3e9, 0x1d3);
            this.tab_LrTj.TabIndex = 0;
            this.tab_LrTj.Text = "销售利润统计";
            this.tab_LrTj.UseVisualStyleBackColor = true;
            this.DataGridList.AllowUserToAddRows = false;
            this.DataGridList.AllowUserToDeleteRows = false;
            style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridList.AlternatingRowsDefaultCellStyle = style;
            this.DataGridList.BackgroundColor = Color.WhiteSmoke;
            this.DataGridList.BorderStyle = BorderStyle.None;
            style2.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style2.BackColor = Color.White;
            style2.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style2.ForeColor = SystemColors.WindowText;
            style2.SelectionBackColor = SystemColors.Highlight;
            style2.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.ColumnHeadersDefaultCellStyle = style2;
            this.DataGridList.Columns.AddRange(new DataGridViewColumn[] { this.SaleCommId, this.OrderNum, this.LotNum, this.GuestName, this.CommName, this.StandardMoney, this.Discount, this.AmoutMoney, this.Cost, this.Amount, this.AmoutUnit, this.AllMoney, this.LiRun, this.CreateTime });
            style3.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style3.BackColor = SystemColors.Window;
            style3.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style3.ForeColor = SystemColors.ControlText;
            style3.SelectionBackColor = SystemColors.Highlight;
            style3.SelectionForeColor = SystemColors.HighlightText;
            style3.WrapMode = DataGridViewTriState.False;
            this.DataGridList.DefaultCellStyle = style3;
            this.DataGridList.Dock = DockStyle.Fill;
            this.DataGridList.EnableHeadersVisualStyles = false;
            this.DataGridList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridList.Location = new System.Drawing.Point(3, 0x48);
            this.DataGridList.Name = "DataGridList";
            style4.Alignment = DataGridViewContentAlignment.BottomCenter;
            style4.BackColor = Color.White;
            style4.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style4.ForeColor = SystemColors.WindowText;
            style4.SelectionBackColor = SystemColors.Highlight;
            style4.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.RowHeadersDefaultCellStyle = style4;
            this.DataGridList.RowHeadersVisible = false;
            style5.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridList.RowsDefaultCellStyle = style5;
            this.DataGridList.RowTemplate.Height = 0x17;
            this.DataGridList.Size = new Size(0x3e3, 0x15f);
            this.DataGridList.TabIndex = 12;
            this.SaleCommId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.SaleCommId.DataPropertyName = "SaleCommId";
            style6.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style6.BackColor = Color.White;
            this.SaleCommId.DefaultCellStyle = style6;
            this.SaleCommId.HeaderText = "编号";
            this.SaleCommId.Name = "SaleCommId";
            this.SaleCommId.ReadOnly = true;
            this.SaleCommId.Visible = false;
            this.OrderNum.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.OrderNum.DataPropertyName = "OrderNum";
            style7.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style7.BackColor = Color.White;
            this.OrderNum.DefaultCellStyle = style7;
            this.OrderNum.HeaderText = "销售单据号 ";
            this.OrderNum.Name = "OrderNum";
            this.OrderNum.ReadOnly = true;
            this.LotNum.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.LotNum.DataPropertyName = "LotNum";
            style8.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style8.BackColor = Color.White;
            this.LotNum.DefaultCellStyle = style8;
            this.LotNum.HeaderText = "批号";
            this.LotNum.Name = "LotNum";
            this.LotNum.ReadOnly = true;
            this.GuestName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.GuestName.DataPropertyName = "GuestName";
            style9.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style9.BackColor = Color.White;
            this.GuestName.DefaultCellStyle = style9;
            this.GuestName.HeaderText = "客户";
            this.GuestName.Name = "GuestName";
            this.CommName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CommName.DataPropertyName = "CommName";
            style10.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style10.BackColor = Color.White;
            this.CommName.DefaultCellStyle = style10;
            this.CommName.HeaderText = "商品名称";
            this.CommName.Name = "CommName";
            this.CommName.ReadOnly = true;
            this.StandardMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.StandardMoney.DataPropertyName = "StandardMoney";
            this.StandardMoney.HeaderText = "销售单价";
            this.StandardMoney.Name = "StandardMoney";
            this.StandardMoney.ReadOnly = true;
            this.Discount.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Discount.DataPropertyName = "Discount";
            this.Discount.HeaderText = "折扣";
            this.Discount.Name = "Discount";
            this.Discount.ReadOnly = true;
            this.AmoutMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AmoutMoney.DataPropertyName = "AmoutMoney";
            this.AmoutMoney.HeaderText = "折后价";
            this.AmoutMoney.Name = "AmoutMoney";
            this.AmoutMoney.ReadOnly = true;
            this.Cost.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Cost.DataPropertyName = "Cost";
            this.Cost.HeaderText = "成本价";
            this.Cost.Name = "Cost";
            this.Cost.ReadOnly = true;
            this.Amount.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Amount.DataPropertyName = "Amount";
            this.Amount.HeaderText = "数量";
            this.Amount.Name = "Amount";
            this.Amount.ReadOnly = true;
            this.AmoutUnit.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AmoutUnit.DataPropertyName = "AmoutUnit";
            this.AmoutUnit.HeaderText = "商品单位";
            this.AmoutUnit.Name = "AmoutUnit";
            this.AmoutUnit.ReadOnly = true;
            this.AllMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AllMoney.DataPropertyName = "AllMoney";
            this.AllMoney.HeaderText = "销售总价";
            this.AllMoney.Name = "AllMoney";
            this.AllMoney.ReadOnly = true;
            this.LiRun.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.LiRun.DataPropertyName = "LiRun";
            this.LiRun.HeaderText = "产生利润";
            this.LiRun.Name = "LiRun";
            this.LiRun.ReadOnly = true;
            this.CreateTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CreateTime.DataPropertyName = "CreateTime";
            this.CreateTime.HeaderText = "销售时间";
            this.CreateTime.Name = "CreateTime";
            this.CreateTime.ReadOnly = true;
            this.panel13.Dock = DockStyle.Bottom;
            this.panel13.Location = new System.Drawing.Point(3, 0x1a7);
            this.panel13.Name = "panel13";
            this.panel13.Size = new Size(0x3e3, 10);
            this.panel13.TabIndex = 11;
            this.panel10.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel10.Controls.Add(this.panel12);
            this.panel10.Controls.Add(this.panel11);
            this.panel10.Dock = DockStyle.Bottom;
            this.panel10.Location = new System.Drawing.Point(3, 0x1b1);
            this.panel10.Name = "panel10";
            this.panel10.Size = new Size(0x3e3, 0x1a);
            this.panel10.TabIndex = 10;
            this.panel12.Controls.Add(this.lblSalesWhere);
            this.panel12.Controls.Add(this.lblWhere);
            this.panel12.Dock = DockStyle.Fill;
            this.panel12.Location = new System.Drawing.Point(0, 0);
            this.panel12.Name = "panel12";
            this.panel12.Size = new Size(550, 0x1a);
            this.panel12.TabIndex = 1;
            this.lblSalesWhere.AutoSize = true;
            this.lblSalesWhere.Location = new System.Drawing.Point(0x1a2, 8);
            this.lblSalesWhere.Name = "lblSalesWhere";
            this.lblSalesWhere.Size = new Size(0, 12);
            this.lblSalesWhere.TabIndex = 1;
            this.lblSalesWhere.Visible = false;
            this.lblWhere.AutoSize = true;
            this.lblWhere.Dock = DockStyle.Right;
            this.lblWhere.Location = new System.Drawing.Point(550, 0);
            this.lblWhere.Name = "lblWhere";
            this.lblWhere.Size = new Size(0, 12);
            this.lblWhere.TabIndex = 0;
            this.lblWhere.Visible = false;
            this.panel11.Controls.Add(this.navigator_Page);
            this.panel11.Dock = DockStyle.Right;
            this.panel11.Location = new System.Drawing.Point(550, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new Size(0x1bd, 0x1a);
            this.panel11.TabIndex = 0;
            this.navigator_Page.Dock = DockStyle.Bottom;
            this.navigator_Page.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page.Name = "navigator_Page";
            this.navigator_Page.PageSize = 0x11;
            this.navigator_Page.RowCount = 0;
            this.navigator_Page.Size = new Size(0x1bd, 0x12);
            this.navigator_Page.TabIndex = 0;
            this.navigator_Page.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page_OnLoadViewStatus);
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new System.Drawing.Point(3, 0x1cb);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(0x3e3, 5);
            this.panel9.TabIndex = 9;
            this.PlSearch.Controls.Add(this.panel24);
            this.PlSearch.Controls.Add(this.panel25);
            this.PlSearch.Controls.Add(this.panel18);
            this.PlSearch.Controls.Add(this.panel21);
            this.PlSearch.Controls.Add(this.panel19);
            this.PlSearch.Controls.Add(this.panel20);
            this.PlSearch.Controls.Add(this.panel22);
            this.PlSearch.Controls.Add(this.panel23);
            this.PlSearch.Dock = DockStyle.Top;
            this.PlSearch.Location = new System.Drawing.Point(3, 0x2d);
            this.PlSearch.Name = "PlSearch";
            this.PlSearch.Size = new Size(0x3e3, 0x1b);
            this.PlSearch.TabIndex = 8;
            this.PlSearch.Visible = false;
            this.panel24.Controls.Add(this.label2);
            this.panel24.Controls.Add(this.dateTime_EndTime);
            this.panel24.Controls.Add(this.dateTime_BeginTime);
            this.panel24.Dock = DockStyle.Fill;
            this.panel24.Location = new System.Drawing.Point(0x2ca, 0);
            this.panel24.Name = "panel24";
            this.panel24.Size = new Size(0x119, 0x1b);
            this.panel24.TabIndex = 0x17;
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(0x80, 7);
            this.label2.Name = "label2";
            this.label2.Size = new Size(11, 12);
            this.label2.TabIndex = 2;
            this.label2.Text = "-";
            this.dateTime_EndTime.Location = new System.Drawing.Point(0x94, 3);
            this.dateTime_EndTime.Name = "dateTime_EndTime";
            this.dateTime_EndTime.Size = new Size(0x77, 0x15);
            this.dateTime_EndTime.TabIndex = 1;
            this.dateTime_BeginTime.Location = new System.Drawing.Point(3, 3);
            this.dateTime_BeginTime.Name = "dateTime_BeginTime";
            this.dateTime_BeginTime.Size = new Size(0x77, 0x15);
            this.dateTime_BeginTime.TabIndex = 0;
            this.panel25.Controls.Add(this.lbl_CreateTime);
            this.panel25.Dock = DockStyle.Left;
            this.panel25.Location = new System.Drawing.Point(0x285, 0);
            this.panel25.Name = "panel25";
            this.panel25.Size = new Size(0x45, 0x1b);
            this.panel25.TabIndex = 0x16;
            this.lbl_CreateTime.AutoSize = true;
            this.lbl_CreateTime.Location = new System.Drawing.Point(5, 7);
            this.lbl_CreateTime.Name = "lbl_CreateTime";
            this.lbl_CreateTime.Size = new Size(0x3b, 12);
            this.lbl_CreateTime.TabIndex = 0;
            this.lbl_CreateTime.Text = "销售时间:";
            this.panel18.Controls.Add(this.txt_GuestName);
            this.panel18.Dock = DockStyle.Left;
            this.panel18.Location = new System.Drawing.Point(0x1f3, 0);
            this.panel18.Name = "panel18";
            this.panel18.Size = new Size(0x92, 0x1b);
            this.panel18.TabIndex = 0x15;
            this.txt_GuestName.Location = new System.Drawing.Point(5, 3);
            this.txt_GuestName.Name = "txt_GuestName";
            this.txt_GuestName.Size = new Size(0x89, 0x15);
            this.txt_GuestName.TabIndex = 0;
            this.panel21.Controls.Add(this.lbl_GuestName);
            this.panel21.Dock = DockStyle.Left;
            this.panel21.Location = new System.Drawing.Point(430, 0);
            this.panel21.Name = "panel21";
            this.panel21.Size = new Size(0x45, 0x1b);
            this.panel21.TabIndex = 20;
            this.lbl_GuestName.AutoSize = true;
            this.lbl_GuestName.Location = new System.Drawing.Point(5, 7);
            this.lbl_GuestName.Name = "lbl_GuestName";
            this.lbl_GuestName.Size = new Size(0x3b, 12);
            this.lbl_GuestName.TabIndex = 0;
            this.lbl_GuestName.Text = "客户姓名:";
            this.panel19.Controls.Add(this.txt_EndMoney);
            this.panel19.Controls.Add(this.label4);
            this.panel19.Controls.Add(this.txt_BeginMoney);
            this.panel19.Dock = DockStyle.Left;
            this.panel19.Location = new System.Drawing.Point(0x11c, 0);
            this.panel19.Name = "panel19";
            this.panel19.Size = new Size(0x92, 0x1b);
            this.panel19.TabIndex = 0x13;
            this.txt_EndMoney.Location = new System.Drawing.Point(0x55, 3);
            this.txt_EndMoney.Name = "txt_EndMoney";
            this.txt_EndMoney.Size = new Size(0x3a, 0x15);
            this.txt_EndMoney.TabIndex = 2;
            this.txt_EndMoney.KeyPress += new KeyPressEventHandler(this.txt_EndMoney_KeyPress);
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(0x44, 6);
            this.label4.Name = "label4";
            this.label4.Size = new Size(11, 12);
            this.label4.TabIndex = 1;
            this.label4.Text = "-";
            this.txt_BeginMoney.Location = new System.Drawing.Point(3, 3);
            this.txt_BeginMoney.Name = "txt_BeginMoney";
            this.txt_BeginMoney.Size = new Size(0x3b, 0x15);
            this.txt_BeginMoney.TabIndex = 0;
            this.txt_BeginMoney.KeyPress += new KeyPressEventHandler(this.txt_BeginMoney_KeyPress);
            this.panel20.Controls.Add(this.label3);
            this.panel20.Dock = DockStyle.Left;
            this.panel20.Location = new System.Drawing.Point(0xd7, 0);
            this.panel20.Name = "panel20";
            this.panel20.Size = new Size(0x45, 0x1b);
            this.panel20.TabIndex = 0x12;
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(6, 6);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x3b, 12);
            this.label3.TabIndex = 0;
            this.label3.Text = "销售金额:";
            this.panel22.Controls.Add(this.txt_IdDocument);
            this.panel22.Dock = DockStyle.Left;
            this.panel22.Location = new System.Drawing.Point(0x45, 0);
            this.panel22.Name = "panel22";
            this.panel22.Size = new Size(0x92, 0x1b);
            this.panel22.TabIndex = 0x11;
            this.txt_IdDocument.Location = new System.Drawing.Point(5, 3);
            this.txt_IdDocument.Name = "txt_IdDocument";
            this.txt_IdDocument.Size = new Size(0x89, 0x15);
            this.txt_IdDocument.TabIndex = 0;
            this.panel23.Controls.Add(this.lbl_Idcoument);
            this.panel23.Dock = DockStyle.Left;
            this.panel23.Location = new System.Drawing.Point(0, 0);
            this.panel23.Name = "panel23";
            this.panel23.Size = new Size(0x45, 0x1b);
            this.panel23.TabIndex = 0x10;
            this.lbl_Idcoument.AutoSize = true;
            this.lbl_Idcoument.Location = new System.Drawing.Point(5, 6);
            this.lbl_Idcoument.Name = "lbl_Idcoument";
            this.lbl_Idcoument.Size = new Size(0x3b, 12);
            this.lbl_Idcoument.TabIndex = 0;
            this.lbl_Idcoument.Text = "单据编号:";
            this.panel8.Dock = DockStyle.Top;
            this.panel8.Location = new System.Drawing.Point(3, 0x25);
            this.panel8.Name = "panel8";
            this.panel8.Size = new Size(0x3e3, 8);
            this.panel8.TabIndex = 7;
            this.panel1.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel1.Controls.Add(this.panel92);
            this.panel1.Controls.Add(this.panel89);
            this.panel1.Controls.Add(this.panel7);
            this.panel1.Controls.Add(this.panel16);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(3, 11);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x3e3, 0x1a);
            this.panel1.TabIndex = 6;
            this.panel92.Controls.Add(this.btn_LiRunTongJi);
            this.panel92.Dock = DockStyle.Right;
            this.panel92.Location = new System.Drawing.Point(0x27f, 3);
            this.panel92.Name = "panel92";
            this.panel92.Size = new Size(0x59, 20);
            this.panel92.TabIndex = 0x12;
            this.btn_LiRunTongJi.Dock = DockStyle.Right;
            this.btn_LiRunTongJi.Location = new System.Drawing.Point(14, 0);
            this.btn_LiRunTongJi.Name = "btn_LiRunTongJi";
            this.btn_LiRunTongJi.Size = new Size(0x4b, 20);
            this.btn_LiRunTongJi.TabIndex = 1;
            this.btn_LiRunTongJi.Text = "打 印";
            this.btn_LiRunTongJi.UseVisualStyleBackColor = true;
            this.btn_LiRunTongJi.Click += new EventHandler(this.btn_LiRunTongJi_Click);
            this.panel89.Controls.Add(this.btn_BuildLiRun);
            this.panel89.Dock = DockStyle.Right;
            this.panel89.Location = new System.Drawing.Point(0x2d8, 3);
            this.panel89.Name = "panel89";
            this.panel89.Size = new Size(0x59, 20);
            this.panel89.TabIndex = 0x10;
            this.btn_BuildLiRun.Dock = DockStyle.Right;
            this.btn_BuildLiRun.Location = new System.Drawing.Point(14, 0);
            this.btn_BuildLiRun.Name = "btn_BuildLiRun";
            this.btn_BuildLiRun.Size = new Size(0x4b, 20);
            this.btn_BuildLiRun.TabIndex = 0;
            this.btn_BuildLiRun.Text = "生成报表";
            this.btn_BuildLiRun.UseVisualStyleBackColor = true;
            this.btn_BuildLiRun.Click += new EventHandler(this.btn_BuildLiRun_Click);
            this.panel7.Controls.Add(this.btnSalesSearch);
            this.panel7.Dock = DockStyle.Right;
            this.panel7.Location = new System.Drawing.Point(0x331, 3);
            this.panel7.Name = "panel7";
            this.panel7.Size = new Size(0x59, 20);
            this.panel7.TabIndex = 15;
            this.btnSalesSearch.Dock = DockStyle.Right;
            this.btnSalesSearch.Location = new System.Drawing.Point(14, 0);
            this.btnSalesSearch.Name = "btnSalesSearch";
            this.btnSalesSearch.Size = new Size(0x4b, 20);
            this.btnSalesSearch.TabIndex = 1;
            this.btnSalesSearch.Text = "查 询";
            this.btnSalesSearch.UseVisualStyleBackColor = true;
            this.btnSalesSearch.Click += new EventHandler(this.btnSalesSearch_Click);
            this.panel16.Controls.Add(this.btnSalesSearchHidden);
            this.panel16.Dock = DockStyle.Right;
            this.panel16.Location = new System.Drawing.Point(0x38a, 3);
            this.panel16.Name = "panel16";
            this.panel16.Size = new Size(0x59, 20);
            this.panel16.TabIndex = 14;
            this.btnSalesSearchHidden.Dock = DockStyle.Right;
            this.btnSalesSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btnSalesSearchHidden.Name = "btnSalesSearchHidden";
            this.btnSalesSearchHidden.Size = new Size(0x4b, 20);
            this.btnSalesSearchHidden.TabIndex = 0;
            this.btnSalesSearchHidden.Text = "显示查询";
            this.btnSalesSearchHidden.UseVisualStyleBackColor = true;
            this.btnSalesSearchHidden.Click += new EventHandler(this.btnSalesSearchHidden_Click);
            this.panel3.Dock = DockStyle.Bottom;
            this.panel3.Location = new System.Drawing.Point(0, 0x17);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(0x3e3, 3);
            this.panel3.TabIndex = 1;
            this.panel2.Dock = DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(0x3e3, 3);
            this.panel2.TabIndex = 0;
            this.pan_TopJianGe.Dock = DockStyle.Top;
            this.pan_TopJianGe.Location = new System.Drawing.Point(3, 3);
            this.pan_TopJianGe.Name = "pan_TopJianGe";
            this.pan_TopJianGe.Size = new Size(0x3e3, 8);
            this.pan_TopJianGe.TabIndex = 4;
            this.tab_Rbb.Controls.Add(this.RiBaoDataGridList);
            this.tab_Rbb.Controls.Add(this.panel44);
            this.tab_Rbb.Controls.Add(this.panel41);
            this.tab_Rbb.Controls.Add(this.panel32);
            this.tab_Rbb.Controls.Add(this.panel_RiBaoBiaoSearch);
            this.tab_Rbb.Controls.Add(this.panel31);
            this.tab_Rbb.Controls.Add(this.panel5);
            this.tab_Rbb.Controls.Add(this.panel4);
            this.tab_Rbb.Location = new System.Drawing.Point(4, 0x15);
            this.tab_Rbb.Name = "tab_Rbb";
            this.tab_Rbb.Padding = new Padding(3);
            this.tab_Rbb.Size = new Size(0x3e9, 0x1d3);
            this.tab_Rbb.TabIndex = 1;
            this.tab_Rbb.Text = "销售日报表";
            this.tab_Rbb.UseVisualStyleBackColor = true;
            this.RiBaoDataGridList.AllowUserToAddRows = false;
            this.RiBaoDataGridList.AllowUserToDeleteRows = false;
            style11.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style11.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.RiBaoDataGridList.AlternatingRowsDefaultCellStyle = style11;
            this.RiBaoDataGridList.BackgroundColor = Color.WhiteSmoke;
            this.RiBaoDataGridList.BorderStyle = BorderStyle.None;
            style12.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style12.BackColor = Color.White;
            style12.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style12.ForeColor = SystemColors.WindowText;
            style12.SelectionBackColor = SystemColors.Highlight;
            style12.SelectionForeColor = SystemColors.HighlightText;
            this.RiBaoDataGridList.ColumnHeadersDefaultCellStyle = style12;
            this.RiBaoDataGridList.Columns.AddRange(new DataGridViewColumn[] { this.OrdersId, this.dataGridViewTextBoxColumn1, this.GuestId, this.UserId, this.dataGridViewTextBoxColumn2, this.ToMeetMoney });
            style13.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style13.BackColor = SystemColors.Window;
            style13.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style13.ForeColor = SystemColors.ControlText;
            style13.SelectionBackColor = SystemColors.Highlight;
            style13.SelectionForeColor = SystemColors.HighlightText;
            style13.WrapMode = DataGridViewTriState.False;
            this.RiBaoDataGridList.DefaultCellStyle = style13;
            this.RiBaoDataGridList.Dock = DockStyle.Fill;
            this.RiBaoDataGridList.EnableHeadersVisualStyles = false;
            this.RiBaoDataGridList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.RiBaoDataGridList.Location = new System.Drawing.Point(3, 0x48);
            this.RiBaoDataGridList.Name = "RiBaoDataGridList";
            style14.Alignment = DataGridViewContentAlignment.BottomCenter;
            style14.BackColor = Color.White;
            style14.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style14.ForeColor = SystemColors.WindowText;
            style14.SelectionBackColor = SystemColors.Highlight;
            style14.SelectionForeColor = SystemColors.HighlightText;
            this.RiBaoDataGridList.RowHeadersDefaultCellStyle = style14;
            style15.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.RiBaoDataGridList.RowsDefaultCellStyle = style15;
            this.RiBaoDataGridList.RowTemplate.Height = 0x17;
            this.RiBaoDataGridList.Size = new Size(0x3e3, 0x15f);
            this.RiBaoDataGridList.TabIndex = 11;
            this.RiBaoDataGridList.CellMouseDoubleClick += new DataGridViewCellMouseEventHandler(this.RiBaoDataGridList_CellMouseDoubleClick);
            this.OrdersId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.OrdersId.DataPropertyName = "OrdersId";
            style16.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style16.BackColor = Color.White;
            this.OrdersId.DefaultCellStyle = style16;
            this.OrdersId.HeaderText = "编号";
            this.OrdersId.Name = "OrdersId";
            this.OrdersId.ReadOnly = true;
            this.OrdersId.Visible = false;
            this.dataGridViewTextBoxColumn1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn1.DataPropertyName = "OrderNum";
            style17.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style17.BackColor = Color.White;
            this.dataGridViewTextBoxColumn1.DefaultCellStyle = style17;
            this.dataGridViewTextBoxColumn1.HeaderText = "销售单据号";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            this.GuestId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.GuestId.DataPropertyName = "GuestId";
            style18.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style18.BackColor = Color.White;
            this.GuestId.DefaultCellStyle = style18;
            this.GuestId.HeaderText = "购买客户";
            this.GuestId.Name = "GuestId";
            this.GuestId.ReadOnly = true;
            this.UserId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.UserId.DataPropertyName = "UserId";
            style19.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style19.BackColor = Color.White;
            this.UserId.DefaultCellStyle = style19;
            this.UserId.HeaderText = "销售人员";
            this.UserId.Name = "UserId";
            this.UserId.ReadOnly = true;
            this.dataGridViewTextBoxColumn2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn2.DataPropertyName = "CreateTime";
            style20.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style20.BackColor = Color.White;
            this.dataGridViewTextBoxColumn2.DefaultCellStyle = style20;
            this.dataGridViewTextBoxColumn2.HeaderText = "销售时间";
            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly = true;
            this.ToMeetMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.ToMeetMoney.DataPropertyName = "ToMeetMoney";
            style21.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style21.BackColor = Color.White;
            this.ToMeetMoney.DefaultCellStyle = style21;
            this.ToMeetMoney.HeaderText = "销售金额";
            this.ToMeetMoney.Name = "ToMeetMoney";
            this.ToMeetMoney.ReadOnly = true;
            this.panel44.Dock = DockStyle.Bottom;
            this.panel44.Location = new System.Drawing.Point(3, 0x1a7);
            this.panel44.Name = "panel44";
            this.panel44.Size = new Size(0x3e3, 10);
            this.panel44.TabIndex = 10;
            this.panel41.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel41.Controls.Add(this.panel42);
            this.panel41.Controls.Add(this.panel43);
            this.panel41.Dock = DockStyle.Bottom;
            this.panel41.Location = new System.Drawing.Point(3, 0x1b1);
            this.panel41.Name = "panel41";
            this.panel41.Size = new Size(0x3e3, 0x1a);
            this.panel41.TabIndex = 9;
            this.panel42.Controls.Add(this.lbl_RiBaoSWhere);
            this.panel42.Controls.Add(this.label11);
            this.panel42.Dock = DockStyle.Fill;
            this.panel42.Location = new System.Drawing.Point(0, 0);
            this.panel42.Name = "panel42";
            this.panel42.Size = new Size(550, 0x1a);
            this.panel42.TabIndex = 1;
            this.lbl_RiBaoSWhere.AutoSize = true;
            this.lbl_RiBaoSWhere.Location = new System.Drawing.Point(0x1a3, 8);
            this.lbl_RiBaoSWhere.Name = "lbl_RiBaoSWhere";
            this.lbl_RiBaoSWhere.Size = new Size(0, 12);
            this.lbl_RiBaoSWhere.TabIndex = 1;
            this.lbl_RiBaoSWhere.Visible = false;
            this.label11.AutoSize = true;
            this.label11.Dock = DockStyle.Right;
            this.label11.Location = new System.Drawing.Point(550, 0);
            this.label11.Name = "label11";
            this.label11.Size = new Size(0, 12);
            this.label11.TabIndex = 0;
            this.label11.Visible = false;
            this.panel43.Controls.Add(this.navigator_Page1);
            this.panel43.Dock = DockStyle.Right;
            this.panel43.Location = new System.Drawing.Point(550, 0);
            this.panel43.Name = "panel43";
            this.panel43.Size = new Size(0x1bd, 0x1a);
            this.panel43.TabIndex = 0;
            this.navigator_Page1.Dock = DockStyle.Bottom;
            this.navigator_Page1.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page1.Name = "navigator_Page1";
            this.navigator_Page1.PageSize = 20;
            this.navigator_Page1.RowCount = 0;
            this.navigator_Page1.Size = new Size(0x1bd, 0x12);
            this.navigator_Page1.TabIndex = 0;
            this.navigator_Page1.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page1_OnLoadViewStatus);
            this.panel32.Dock = DockStyle.Bottom;
            this.panel32.Location = new System.Drawing.Point(3, 0x1cb);
            this.panel32.Name = "panel32";
            this.panel32.Size = new Size(0x3e3, 5);
            this.panel32.TabIndex = 8;
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel35);
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel36);
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel37);
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel38);
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel39);
            this.panel_RiBaoBiaoSearch.Controls.Add(this.panel40);
            this.panel_RiBaoBiaoSearch.Dock = DockStyle.Top;
            this.panel_RiBaoBiaoSearch.Location = new System.Drawing.Point(3, 0x2d);
            this.panel_RiBaoBiaoSearch.Name = "panel_RiBaoBiaoSearch";
            this.panel_RiBaoBiaoSearch.Size = new Size(0x3e3, 0x1b);
            this.panel_RiBaoBiaoSearch.TabIndex = 7;
            this.panel_RiBaoBiaoSearch.Visible = false;
            this.panel35.Controls.Add(this.txt_RiBaoGuestName);
            this.panel35.Dock = DockStyle.Left;
            this.panel35.Location = new System.Drawing.Point(0x1f3, 0);
            this.panel35.Name = "panel35";
            this.panel35.Size = new Size(0x92, 0x1b);
            this.panel35.TabIndex = 0x15;
            this.txt_RiBaoGuestName.Location = new System.Drawing.Point(5, 3);
            this.txt_RiBaoGuestName.Name = "txt_RiBaoGuestName";
            this.txt_RiBaoGuestName.Size = new Size(0x89, 0x15);
            this.txt_RiBaoGuestName.TabIndex = 0;
            this.panel36.Controls.Add(this.label7);
            this.panel36.Dock = DockStyle.Left;
            this.panel36.Location = new System.Drawing.Point(430, 0);
            this.panel36.Name = "panel36";
            this.panel36.Size = new Size(0x45, 0x1b);
            this.panel36.TabIndex = 20;
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(5, 7);
            this.label7.Name = "label7";
            this.label7.Size = new Size(0x3b, 12);
            this.label7.TabIndex = 0;
            this.label7.Text = "客户姓名:";
            this.panel37.Controls.Add(this.txt_RiBaoEndTime);
            this.panel37.Controls.Add(this.label8);
            this.panel37.Controls.Add(this.txt_RiBaoBeginTime);
            this.panel37.Dock = DockStyle.Left;
            this.panel37.Location = new System.Drawing.Point(0x11c, 0);
            this.panel37.Name = "panel37";
            this.panel37.Size = new Size(0x92, 0x1b);
            this.panel37.TabIndex = 0x13;
            this.txt_RiBaoEndTime.Location = new System.Drawing.Point(0x55, 3);
            this.txt_RiBaoEndTime.Name = "txt_RiBaoEndTime";
            this.txt_RiBaoEndTime.Size = new Size(0x3a, 0x15);
            this.txt_RiBaoEndTime.TabIndex = 2;
            this.txt_RiBaoEndTime.KeyPress += new KeyPressEventHandler(this.txt_RiBaoEndTime_KeyPress);
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(0x44, 6);
            this.label8.Name = "label8";
            this.label8.Size = new Size(11, 12);
            this.label8.TabIndex = 1;
            this.label8.Text = "-";
            this.txt_RiBaoBeginTime.Location = new System.Drawing.Point(3, 3);
            this.txt_RiBaoBeginTime.Name = "txt_RiBaoBeginTime";
            this.txt_RiBaoBeginTime.Size = new Size(0x3b, 0x15);
            this.txt_RiBaoBeginTime.TabIndex = 0;
            this.txt_RiBaoBeginTime.KeyPress += new KeyPressEventHandler(this.txt_RiBaoBeginTime_KeyPress);
            this.panel38.Controls.Add(this.label9);
            this.panel38.Dock = DockStyle.Left;
            this.panel38.Location = new System.Drawing.Point(0xd7, 0);
            this.panel38.Name = "panel38";
            this.panel38.Size = new Size(0x45, 0x1b);
            this.panel38.TabIndex = 0x12;
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(6, 6);
            this.label9.Name = "label9";
            this.label9.Size = new Size(0x3b, 12);
            this.label9.TabIndex = 0;
            this.label9.Text = "销售金额:";
            this.panel39.Controls.Add(this.txt_RiBaoIdcomuent);
            this.panel39.Dock = DockStyle.Left;
            this.panel39.Location = new System.Drawing.Point(0x45, 0);
            this.panel39.Name = "panel39";
            this.panel39.Size = new Size(0x92, 0x1b);
            this.panel39.TabIndex = 0x11;
            this.txt_RiBaoIdcomuent.Location = new System.Drawing.Point(5, 3);
            this.txt_RiBaoIdcomuent.Name = "txt_RiBaoIdcomuent";
            this.txt_RiBaoIdcomuent.Size = new Size(0x89, 0x15);
            this.txt_RiBaoIdcomuent.TabIndex = 0;
            this.panel40.Controls.Add(this.label10);
            this.panel40.Dock = DockStyle.Left;
            this.panel40.Location = new System.Drawing.Point(0, 0);
            this.panel40.Name = "panel40";
            this.panel40.Size = new Size(0x45, 0x1b);
            this.panel40.TabIndex = 0x10;
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(5, 6);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x3b, 12);
            this.label10.TabIndex = 0;
            this.label10.Text = "单据编号:";
            this.panel31.Dock = DockStyle.Top;
            this.panel31.Location = new System.Drawing.Point(3, 0x25);
            this.panel31.Name = "panel31";
            this.panel31.Size = new Size(0x3e3, 8);
            this.panel31.TabIndex = 3;
            this.panel5.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel5.Controls.Add(this.panel28);
            this.panel5.Controls.Add(this.panel27);
            this.panel5.Controls.Add(this.panel6);
            this.panel5.Controls.Add(this.panel14);
            this.panel5.Controls.Add(this.panel29);
            this.panel5.Controls.Add(this.panel30);
            this.panel5.Dock = DockStyle.Top;
            this.panel5.Location = new System.Drawing.Point(3, 11);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(0x3e3, 0x1a);
            this.panel5.TabIndex = 2;
            this.panel28.Controls.Add(this.btn_RiBaoPrint);
            this.panel28.Dock = DockStyle.Right;
            this.panel28.Location = new System.Drawing.Point(0x27f, 3);
            this.panel28.Name = "panel28";
            this.panel28.Size = new Size(0x59, 20);
            this.panel28.TabIndex = 0x11;
            this.btn_RiBaoPrint.Dock = DockStyle.Right;
            this.btn_RiBaoPrint.Location = new System.Drawing.Point(14, 0);
            this.btn_RiBaoPrint.Name = "btn_RiBaoPrint";
            this.btn_RiBaoPrint.Size = new Size(0x4b, 20);
            this.btn_RiBaoPrint.TabIndex = 1;
            this.btn_RiBaoPrint.Text = "打 印";
            this.btn_RiBaoPrint.UseVisualStyleBackColor = true;
            this.btn_RiBaoPrint.Click += new EventHandler(this.btn_RiBaoPrint_Click);
            this.panel27.Controls.Add(this.btnRiBaoBuildExcel);
            this.panel27.Dock = DockStyle.Right;
            this.panel27.Location = new System.Drawing.Point(0x2d8, 3);
            this.panel27.Name = "panel27";
            this.panel27.Size = new Size(0x59, 20);
            this.panel27.TabIndex = 0x10;
            this.btnRiBaoBuildExcel.Dock = DockStyle.Right;
            this.btnRiBaoBuildExcel.Location = new System.Drawing.Point(14, 0);
            this.btnRiBaoBuildExcel.Name = "btnRiBaoBuildExcel";
            this.btnRiBaoBuildExcel.Size = new Size(0x4b, 20);
            this.btnRiBaoBuildExcel.TabIndex = 0;
            this.btnRiBaoBuildExcel.Text = "生成报表";
            this.btnRiBaoBuildExcel.UseVisualStyleBackColor = true;
            this.btnRiBaoBuildExcel.Click += new EventHandler(this.btnRiBaoBuildExcel_Click);
            this.panel6.Controls.Add(this.btnRiBaoSearch);
            this.panel6.Dock = DockStyle.Right;
            this.panel6.Location = new System.Drawing.Point(0x331, 3);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(0x59, 20);
            this.panel6.TabIndex = 15;
            this.btnRiBaoSearch.Dock = DockStyle.Right;
            this.btnRiBaoSearch.Location = new System.Drawing.Point(14, 0);
            this.btnRiBaoSearch.Name = "btnRiBaoSearch";
            this.btnRiBaoSearch.Size = new Size(0x4b, 20);
            this.btnRiBaoSearch.TabIndex = 1;
            this.btnRiBaoSearch.Text = "查 询";
            this.btnRiBaoSearch.UseVisualStyleBackColor = true;
            this.btnRiBaoSearch.Click += new EventHandler(this.btnRiBaoSearch_Click);
            this.panel14.Controls.Add(this.btnRiBaoSearchHidden);
            this.panel14.Dock = DockStyle.Right;
            this.panel14.Location = new System.Drawing.Point(0x38a, 3);
            this.panel14.Name = "panel14";
            this.panel14.Size = new Size(0x59, 20);
            this.panel14.TabIndex = 14;
            this.btnRiBaoSearchHidden.Dock = DockStyle.Right;
            this.btnRiBaoSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btnRiBaoSearchHidden.Name = "btnRiBaoSearchHidden";
            this.btnRiBaoSearchHidden.Size = new Size(0x4b, 20);
            this.btnRiBaoSearchHidden.TabIndex = 0;
            this.btnRiBaoSearchHidden.Text = "显示查询";
            this.btnRiBaoSearchHidden.UseVisualStyleBackColor = true;
            this.btnRiBaoSearchHidden.Click += new EventHandler(this.btnRiBaoSearchHidden_Click);
            this.panel29.Dock = DockStyle.Bottom;
            this.panel29.Location = new System.Drawing.Point(0, 0x17);
            this.panel29.Name = "panel29";
            this.panel29.Size = new Size(0x3e3, 3);
            this.panel29.TabIndex = 1;
            this.panel30.Dock = DockStyle.Top;
            this.panel30.Location = new System.Drawing.Point(0, 0);
            this.panel30.Name = "panel30";
            this.panel30.Size = new Size(0x3e3, 3);
            this.panel30.TabIndex = 0;
            this.panel4.Dock = DockStyle.Top;
            this.panel4.Location = new System.Drawing.Point(3, 3);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(0x3e3, 8);
            this.panel4.TabIndex = 1;
            this.tab_Ywtj.Controls.Add(this.DataGridSalesP);
            this.tab_Ywtj.Controls.Add(this.panel60);
            this.tab_Ywtj.Controls.Add(this.panel57);
            this.tab_Ywtj.Controls.Add(this.panel56);
            this.tab_Ywtj.Controls.Add(this.pan_SalesP);
            this.tab_Ywtj.Controls.Add(this.panel48);
            this.tab_Ywtj.Controls.Add(this.panel17);
            this.tab_Ywtj.Controls.Add(this.panel15);
            this.tab_Ywtj.Location = new System.Drawing.Point(4, 0x15);
            this.tab_Ywtj.Name = "tab_Ywtj";
            this.tab_Ywtj.Padding = new Padding(3);
            this.tab_Ywtj.Size = new Size(0x3e9, 0x1d3);
            this.tab_Ywtj.TabIndex = 2;
            this.tab_Ywtj.Text = "销售员业绩统计";
            this.tab_Ywtj.UseVisualStyleBackColor = true;
            this.DataGridSalesP.AllowUserToAddRows = false;
            this.DataGridSalesP.AllowUserToDeleteRows = false;
            style22.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style22.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridSalesP.AlternatingRowsDefaultCellStyle = style22;
            this.DataGridSalesP.BackgroundColor = Color.WhiteSmoke;
            this.DataGridSalesP.BorderStyle = BorderStyle.None;
            style23.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style23.BackColor = Color.White;
            style23.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style23.ForeColor = SystemColors.WindowText;
            style23.SelectionBackColor = SystemColors.Highlight;
            style23.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridSalesP.ColumnHeadersDefaultCellStyle = style23;
            this.DataGridSalesP.Columns.AddRange(new DataGridViewColumn[] { this.dataGridViewTextBoxColumn3, this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn5, this.dataGridViewTextBoxColumn6, this.dataGridViewTextBoxColumn7, this.dataGridViewTextBoxColumn8 });
            style24.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style24.BackColor = SystemColors.Window;
            style24.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style24.ForeColor = SystemColors.ControlText;
            style24.SelectionBackColor = SystemColors.Highlight;
            style24.SelectionForeColor = SystemColors.HighlightText;
            style24.WrapMode = DataGridViewTriState.False;
            this.DataGridSalesP.DefaultCellStyle = style24;
            this.DataGridSalesP.Dock = DockStyle.Fill;
            this.DataGridSalesP.EnableHeadersVisualStyles = false;
            this.DataGridSalesP.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridSalesP.Location = new System.Drawing.Point(3, 0x48);
            this.DataGridSalesP.Name = "DataGridSalesP";
            style25.Alignment = DataGridViewContentAlignment.BottomCenter;
            style25.BackColor = Color.White;
            style25.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style25.ForeColor = SystemColors.WindowText;
            style25.SelectionBackColor = SystemColors.Highlight;
            style25.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridSalesP.RowHeadersDefaultCellStyle = style25;
            style26.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridSalesP.RowsDefaultCellStyle = style26;
            this.DataGridSalesP.RowTemplate.Height = 0x17;
            this.DataGridSalesP.Size = new Size(0x3e3, 0x15f);
            this.DataGridSalesP.TabIndex = 12;
            this.dataGridViewTextBoxColumn3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn3.DataPropertyName = "UserId";
            style27.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style27.BackColor = Color.White;
            this.dataGridViewTextBoxColumn3.DefaultCellStyle = style27;
            this.dataGridViewTextBoxColumn3.HeaderText = "编号";
            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly = true;
            this.dataGridViewTextBoxColumn3.Visible = false;
            this.dataGridViewTextBoxColumn4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn4.DataPropertyName = "UserName";
            style28.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style28.BackColor = Color.White;
            this.dataGridViewTextBoxColumn4.DefaultCellStyle = style28;
            this.dataGridViewTextBoxColumn4.HeaderText = "业务员姓名";
            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.ReadOnly = true;
            this.dataGridViewTextBoxColumn5.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn5.DataPropertyName = "MonthMoney";
            style29.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style29.BackColor = Color.White;
            this.dataGridViewTextBoxColumn5.DefaultCellStyle = style29;
            this.dataGridViewTextBoxColumn5.HeaderText = "单月销售金额";
            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn5.ReadOnly = true;
            this.dataGridViewTextBoxColumn6.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn6.DataPropertyName = "YearMoney";
            style30.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style30.BackColor = Color.White;
            this.dataGridViewTextBoxColumn6.DefaultCellStyle = style30;
            this.dataGridViewTextBoxColumn6.HeaderText = "单年销售金额";
            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
            this.dataGridViewTextBoxColumn6.ReadOnly = true;
            this.dataGridViewTextBoxColumn7.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn7.DataPropertyName = "AllMoney";
            style31.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style31.BackColor = Color.White;
            this.dataGridViewTextBoxColumn7.DefaultCellStyle = style31;
            this.dataGridViewTextBoxColumn7.HeaderText = "总销售金额";
            this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
            this.dataGridViewTextBoxColumn7.ReadOnly = true;
            this.dataGridViewTextBoxColumn8.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn8.DataPropertyName = "CreateTime";
            style32.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style32.BackColor = Color.White;
            this.dataGridViewTextBoxColumn8.DefaultCellStyle = style32;
            this.dataGridViewTextBoxColumn8.HeaderText = "最后销售时间";
            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
            this.dataGridViewTextBoxColumn8.ReadOnly = true;
            this.panel60.Dock = DockStyle.Bottom;
            this.panel60.Location = new System.Drawing.Point(3, 0x1a7);
            this.panel60.Name = "panel60";
            this.panel60.Size = new Size(0x3e3, 10);
            this.panel60.TabIndex = 11;
            this.panel57.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel57.Controls.Add(this.panel58);
            this.panel57.Controls.Add(this.panel59);
            this.panel57.Dock = DockStyle.Bottom;
            this.panel57.Location = new System.Drawing.Point(3, 0x1b1);
            this.panel57.Name = "panel57";
            this.panel57.Size = new Size(0x3e3, 0x1a);
            this.panel57.TabIndex = 10;
            this.panel58.Controls.Add(this.lbl_SalesSSWhere);
            this.panel58.Controls.Add(this.label15);
            this.panel58.Dock = DockStyle.Fill;
            this.panel58.Location = new System.Drawing.Point(0, 0);
            this.panel58.Name = "panel58";
            this.panel58.Size = new Size(550, 0x1a);
            this.panel58.TabIndex = 1;
            this.lbl_SalesSSWhere.AutoSize = true;
            this.lbl_SalesSSWhere.Location = new System.Drawing.Point(0x189, 8);
            this.lbl_SalesSSWhere.Name = "lbl_SalesSSWhere";
            this.lbl_SalesSSWhere.Size = new Size(0, 12);
            this.lbl_SalesSSWhere.TabIndex = 2;
            this.lbl_SalesSSWhere.Visible = false;
            this.label15.AutoSize = true;
            this.label15.Dock = DockStyle.Right;
            this.label15.Location = new System.Drawing.Point(550, 0);
            this.label15.Name = "label15";
            this.label15.Size = new Size(0, 12);
            this.label15.TabIndex = 0;
            this.label15.Visible = false;
            this.panel59.Controls.Add(this.navigator_Page2);
            this.panel59.Dock = DockStyle.Right;
            this.panel59.Location = new System.Drawing.Point(550, 0);
            this.panel59.Name = "panel59";
            this.panel59.Size = new Size(0x1bd, 0x1a);
            this.panel59.TabIndex = 0;
            this.navigator_Page2.Dock = DockStyle.Bottom;
            this.navigator_Page2.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page2.Name = "navigator_Page2";
            this.navigator_Page2.PageSize = 20;
            this.navigator_Page2.RowCount = 0;
            this.navigator_Page2.Size = new Size(0x1bd, 0x12);
            this.navigator_Page2.TabIndex = 0;
            this.navigator_Page2.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page2_OnLoadViewStatus);
            this.panel56.Dock = DockStyle.Bottom;
            this.panel56.Location = new System.Drawing.Point(3, 0x1cb);
            this.panel56.Name = "panel56";
            this.panel56.Size = new Size(0x3e3, 5);
            this.panel56.TabIndex = 9;
            this.pan_SalesP.Controls.Add(this.panel50);
            this.pan_SalesP.Controls.Add(this.panel51);
            this.pan_SalesP.Controls.Add(this.panel54);
            this.pan_SalesP.Controls.Add(this.panel55);
            this.pan_SalesP.Dock = DockStyle.Top;
            this.pan_SalesP.Location = new System.Drawing.Point(3, 0x2d);
            this.pan_SalesP.Name = "pan_SalesP";
            this.pan_SalesP.Size = new Size(0x3e3, 0x1b);
            this.pan_SalesP.TabIndex = 8;
            this.pan_SalesP.Visible = false;
            this.panel50.Controls.Add(this.label5);
            this.panel50.Controls.Add(this.dateTime_SalesPEndTime);
            this.panel50.Controls.Add(this.dateTime_SalesPBeginTime);
            this.panel50.Dock = DockStyle.Fill;
            this.panel50.Location = new System.Drawing.Point(0x129, 0);
            this.panel50.Name = "panel50";
            this.panel50.Size = new Size(0x2ba, 0x1b);
            this.panel50.TabIndex = 0x19;
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(0x80, 7);
            this.label5.Name = "label5";
            this.label5.Size = new Size(11, 12);
            this.label5.TabIndex = 2;
            this.label5.Text = "-";
            this.dateTime_SalesPEndTime.Location = new System.Drawing.Point(0x94, 3);
            this.dateTime_SalesPEndTime.Name = "dateTime_SalesPEndTime";
            this.dateTime_SalesPEndTime.Size = new Size(0x77, 0x15);
            this.dateTime_SalesPEndTime.TabIndex = 1;
            this.dateTime_SalesPBeginTime.Location = new System.Drawing.Point(3, 3);
            this.dateTime_SalesPBeginTime.Name = "dateTime_SalesPBeginTime";
            this.dateTime_SalesPBeginTime.Size = new Size(0x77, 0x15);
            this.dateTime_SalesPBeginTime.TabIndex = 0;
            this.panel51.Controls.Add(this.label6);
            this.panel51.Dock = DockStyle.Left;
            this.panel51.Location = new System.Drawing.Point(0xe4, 0);
            this.panel51.Name = "panel51";
            this.panel51.Size = new Size(0x45, 0x1b);
            this.panel51.TabIndex = 0x18;
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(5, 7);
            this.label6.Name = "label6";
            this.label6.Size = new Size(0x3b, 12);
            this.label6.TabIndex = 0;
            this.label6.Text = "统计时间:";
            this.panel54.Controls.Add(this.txt_UserName);
            this.panel54.Dock = DockStyle.Left;
            this.panel54.Location = new System.Drawing.Point(0x52, 0);
            this.panel54.Name = "panel54";
            this.panel54.Size = new Size(0x92, 0x1b);
            this.panel54.TabIndex = 0x11;
            this.txt_UserName.Location = new System.Drawing.Point(5, 3);
            this.txt_UserName.Name = "txt_UserName";
            this.txt_UserName.Size = new Size(0x89, 0x15);
            this.txt_UserName.TabIndex = 0;
            this.panel55.Controls.Add(this.label13);
            this.panel55.Dock = DockStyle.Left;
            this.panel55.Location = new System.Drawing.Point(0, 0);
            this.panel55.Name = "panel55";
            this.panel55.Size = new Size(0x52, 0x1b);
            this.panel55.TabIndex = 0x10;
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(8, 7);
            this.label13.Name = "label13";
            this.label13.Size = new Size(0x47, 12);
            this.label13.TabIndex = 0;
            this.label13.Text = "业务员姓名:";
            this.panel48.Dock = DockStyle.Top;
            this.panel48.Location = new System.Drawing.Point(3, 0x25);
            this.panel48.Name = "panel48";
            this.panel48.Size = new Size(0x3e3, 8);
            this.panel48.TabIndex = 4;
            this.panel17.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel17.Controls.Add(this.panel45);
            this.panel17.Controls.Add(this.panel34);
            this.panel17.Controls.Add(this.panel26);
            this.panel17.Controls.Add(this.panel33);
            this.panel17.Controls.Add(this.panel46);
            this.panel17.Controls.Add(this.panel47);
            this.panel17.Dock = DockStyle.Top;
            this.panel17.Location = new System.Drawing.Point(3, 11);
            this.panel17.Name = "panel17";
            this.panel17.Size = new Size(0x3e3, 0x1a);
            this.panel17.TabIndex = 3;
            this.panel45.Controls.Add(this.btn_PrintSalesYeJi);
            this.panel45.Dock = DockStyle.Right;
            this.panel45.Location = new System.Drawing.Point(0x27f, 3);
            this.panel45.Name = "panel45";
            this.panel45.Size = new Size(0x59, 20);
            this.panel45.TabIndex = 0x11;
            this.btn_PrintSalesYeJi.Dock = DockStyle.Right;
            this.btn_PrintSalesYeJi.Location = new System.Drawing.Point(14, 0);
            this.btn_PrintSalesYeJi.Name = "btn_PrintSalesYeJi";
            this.btn_PrintSalesYeJi.Size = new Size(0x4b, 20);
            this.btn_PrintSalesYeJi.TabIndex = 1;
            this.btn_PrintSalesYeJi.Text = "打 印";
            this.btn_PrintSalesYeJi.UseVisualStyleBackColor = true;
            this.btn_PrintSalesYeJi.Click += new EventHandler(this.btn_PrintSalesYeJi_Click);
            this.panel34.Controls.Add(this.btn_BuildSalesExcel);
            this.panel34.Dock = DockStyle.Right;
            this.panel34.Location = new System.Drawing.Point(0x2d8, 3);
            this.panel34.Name = "panel34";
            this.panel34.Size = new Size(0x59, 20);
            this.panel34.TabIndex = 0x10;
            this.btn_BuildSalesExcel.Dock = DockStyle.Right;
            this.btn_BuildSalesExcel.Location = new System.Drawing.Point(14, 0);
            this.btn_BuildSalesExcel.Name = "btn_BuildSalesExcel";
            this.btn_BuildSalesExcel.Size = new Size(0x4b, 20);
            this.btn_BuildSalesExcel.TabIndex = 0;
            this.btn_BuildSalesExcel.Text = "生成报表";
            this.btn_BuildSalesExcel.UseVisualStyleBackColor = true;
            this.btn_BuildSalesExcel.Click += new EventHandler(this.btn_BuildSalesExcel_Click);
            this.panel26.Controls.Add(this.btn_SalesPerformanceSearch);
            this.panel26.Dock = DockStyle.Right;
            this.panel26.Location = new System.Drawing.Point(0x331, 3);
            this.panel26.Name = "panel26";
            this.panel26.Size = new Size(0x59, 20);
            this.panel26.TabIndex = 15;
            this.btn_SalesPerformanceSearch.Dock = DockStyle.Right;
            this.btn_SalesPerformanceSearch.Location = new System.Drawing.Point(14, 0);
            this.btn_SalesPerformanceSearch.Name = "btn_SalesPerformanceSearch";
            this.btn_SalesPerformanceSearch.Size = new Size(0x4b, 20);
            this.btn_SalesPerformanceSearch.TabIndex = 1;
            this.btn_SalesPerformanceSearch.Text = "查 询";
            this.btn_SalesPerformanceSearch.UseVisualStyleBackColor = true;
            this.btn_SalesPerformanceSearch.Click += new EventHandler(this.btn_SalesPerformanceSearch_Click);
            this.panel33.Controls.Add(this.btn_SPSearchHidden);
            this.panel33.Dock = DockStyle.Right;
            this.panel33.Location = new System.Drawing.Point(0x38a, 3);
            this.panel33.Name = "panel33";
            this.panel33.Size = new Size(0x59, 20);
            this.panel33.TabIndex = 14;
            this.btn_SPSearchHidden.Dock = DockStyle.Right;
            this.btn_SPSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btn_SPSearchHidden.Name = "btn_SPSearchHidden";
            this.btn_SPSearchHidden.Size = new Size(0x4b, 20);
            this.btn_SPSearchHidden.TabIndex = 0;
            this.btn_SPSearchHidden.Text = "显示查询";
            this.btn_SPSearchHidden.UseVisualStyleBackColor = true;
            this.btn_SPSearchHidden.Click += new EventHandler(this.btn_SPSearchHidden_Click);
            this.panel46.Dock = DockStyle.Bottom;
            this.panel46.Location = new System.Drawing.Point(0, 0x17);
            this.panel46.Name = "panel46";
            this.panel46.Size = new Size(0x3e3, 3);
            this.panel46.TabIndex = 1;
            this.panel47.Dock = DockStyle.Top;
            this.panel47.Location = new System.Drawing.Point(0, 0);
            this.panel47.Name = "panel47";
            this.panel47.Size = new Size(0x3e3, 3);
            this.panel47.TabIndex = 0;
            this.panel15.Dock = DockStyle.Top;
            this.panel15.Location = new System.Drawing.Point(3, 3);
            this.panel15.Name = "panel15";
            this.panel15.Size = new Size(0x3e3, 8);
            this.panel15.TabIndex = 2;
            this.tab_GHFX.Controls.Add(this.DataGridListGuest);
            this.tab_GHFX.Controls.Add(this.panel80);
            this.tab_GHFX.Controls.Add(this.panel77);
            this.tab_GHFX.Controls.Add(this.panel76);
            this.tab_GHFX.Controls.Add(this.pan_GuestSearch);
            this.tab_GHFX.Controls.Add(this.panel66);
            this.tab_GHFX.Controls.Add(this.panel52);
            this.tab_GHFX.Controls.Add(this.panel49);
            this.tab_GHFX.Location = new System.Drawing.Point(4, 0x15);
            this.tab_GHFX.Name = "tab_GHFX";
            this.tab_GHFX.Padding = new Padding(3);
            this.tab_GHFX.Size = new Size(0x3e9, 0x1d3);
            this.tab_GHFX.TabIndex = 3;
            this.tab_GHFX.Text = "客户购货分析";
            this.tab_GHFX.UseVisualStyleBackColor = true;
            this.DataGridListGuest.AllowUserToAddRows = false;
            this.DataGridListGuest.AllowUserToDeleteRows = false;
            style33.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style33.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridListGuest.AlternatingRowsDefaultCellStyle = style33;
            this.DataGridListGuest.BackgroundColor = Color.WhiteSmoke;
            this.DataGridListGuest.BorderStyle = BorderStyle.None;
            style34.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style34.BackColor = Color.White;
            style34.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style34.ForeColor = SystemColors.WindowText;
            style34.SelectionBackColor = SystemColors.Highlight;
            style34.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridListGuest.ColumnHeadersDefaultCellStyle = style34;
            this.DataGridListGuest.Columns.AddRange(new DataGridViewColumn[] { this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn10, this.GuestType, this.dataGridViewTextBoxColumn11, this.dataGridViewTextBoxColumn12, this.dataGridViewTextBoxColumn13, this.dataGridViewTextBoxColumn14, this.LastCreateTime });
            style35.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style35.BackColor = SystemColors.Window;
            style35.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style35.ForeColor = SystemColors.ControlText;
            style35.SelectionBackColor = SystemColors.Highlight;
            style35.SelectionForeColor = SystemColors.HighlightText;
            style35.WrapMode = DataGridViewTriState.False;
            this.DataGridListGuest.DefaultCellStyle = style35;
            this.DataGridListGuest.Dock = DockStyle.Fill;
            this.DataGridListGuest.EnableHeadersVisualStyles = false;
            this.DataGridListGuest.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridListGuest.Location = new System.Drawing.Point(3, 0x48);
            this.DataGridListGuest.Name = "DataGridListGuest";
            style36.Alignment = DataGridViewContentAlignment.BottomCenter;
            style36.BackColor = Color.White;
            style36.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style36.ForeColor = SystemColors.WindowText;
            style36.SelectionBackColor = SystemColors.Highlight;
            style36.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridListGuest.RowHeadersDefaultCellStyle = style36;
            style37.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridListGuest.RowsDefaultCellStyle = style37;
            this.DataGridListGuest.RowTemplate.Height = 0x17;
            this.DataGridListGuest.Size = new Size(0x3e3, 0x15f);
            this.DataGridListGuest.TabIndex = 13;
            this.dataGridViewTextBoxColumn9.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn9.DataPropertyName = "GuestId";
            style38.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style38.BackColor = Color.White;
            this.dataGridViewTextBoxColumn9.DefaultCellStyle = style38;
            this.dataGridViewTextBoxColumn9.HeaderText = "编号";
            this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
            this.dataGridViewTextBoxColumn9.ReadOnly = true;
            this.dataGridViewTextBoxColumn9.Visible = false;
            this.dataGridViewTextBoxColumn10.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn10.DataPropertyName = "GuestType";
            style39.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style39.BackColor = Color.White;
            this.dataGridViewTextBoxColumn10.DefaultCellStyle = style39;
            this.dataGridViewTextBoxColumn10.HeaderText = "客户折扣类型";
            this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
            this.dataGridViewTextBoxColumn10.ReadOnly = true;
            this.GuestType.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.GuestType.DataPropertyName = "GuestType";
            this.GuestType.HeaderText = "客户类型";
            this.GuestType.Name = "GuestType";
            this.dataGridViewTextBoxColumn11.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn11.DataPropertyName = "GuestName";
            style40.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style40.BackColor = Color.White;
            this.dataGridViewTextBoxColumn11.DefaultCellStyle = style40;
            this.dataGridViewTextBoxColumn11.HeaderText = "客户名称";
            this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
            this.dataGridViewTextBoxColumn11.ReadOnly = true;
            this.dataGridViewTextBoxColumn12.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn12.DataPropertyName = "ToMeetMoney";
            style41.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style41.BackColor = Color.White;
            this.dataGridViewTextBoxColumn12.DefaultCellStyle = style41;
            this.dataGridViewTextBoxColumn12.HeaderText = "消费总金额";
            this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
            this.dataGridViewTextBoxColumn12.ReadOnly = true;
            this.dataGridViewTextBoxColumn13.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn13.DataPropertyName = "PaidMoney";
            style42.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style42.BackColor = Color.White;
            this.dataGridViewTextBoxColumn13.DefaultCellStyle = style42;
            this.dataGridViewTextBoxColumn13.HeaderText = "已结算总金额";
            this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
            this.dataGridViewTextBoxColumn13.ReadOnly = true;
            this.dataGridViewTextBoxColumn14.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn14.DataPropertyName = "ArrearageMoney";
            style43.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style43.BackColor = Color.White;
            this.dataGridViewTextBoxColumn14.DefaultCellStyle = style43;
            this.dataGridViewTextBoxColumn14.HeaderText = "未结算总额";
            this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
            this.dataGridViewTextBoxColumn14.ReadOnly = true;
            this.LastCreateTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.LastCreateTime.DataPropertyName = "CreateTime";
            this.LastCreateTime.HeaderText = "最后购买时间";
            this.LastCreateTime.Name = "LastCreateTime";
            this.panel80.Dock = DockStyle.Bottom;
            this.panel80.Location = new System.Drawing.Point(3, 0x1a7);
            this.panel80.Name = "panel80";
            this.panel80.Size = new Size(0x3e3, 10);
            this.panel80.TabIndex = 10;
            this.panel77.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel77.Controls.Add(this.panel78);
            this.panel77.Controls.Add(this.panel79);
            this.panel77.Dock = DockStyle.Bottom;
            this.panel77.Location = new System.Drawing.Point(3, 0x1b1);
            this.panel77.Name = "panel77";
            this.panel77.Size = new Size(0x3e3, 0x1a);
            this.panel77.TabIndex = 9;
            this.panel78.Controls.Add(this.lbl_GustSWhere);
            this.panel78.Controls.Add(this.label14);
            this.panel78.Dock = DockStyle.Fill;
            this.panel78.Location = new System.Drawing.Point(0, 0);
            this.panel78.Name = "panel78";
            this.panel78.Size = new Size(550, 0x1a);
            this.panel78.TabIndex = 1;
            this.lbl_GustSWhere.AutoSize = true;
            this.lbl_GustSWhere.Location = new System.Drawing.Point(0x197, 8);
            this.lbl_GustSWhere.Name = "lbl_GustSWhere";
            this.lbl_GustSWhere.Size = new Size(0, 12);
            this.lbl_GustSWhere.TabIndex = 1;
            this.lbl_GustSWhere.Visible = false;
            this.label14.AutoSize = true;
            this.label14.Dock = DockStyle.Right;
            this.label14.Location = new System.Drawing.Point(550, 0);
            this.label14.Name = "label14";
            this.label14.Size = new Size(0, 12);
            this.label14.TabIndex = 0;
            this.label14.Visible = false;
            this.panel79.Controls.Add(this.navigator_Page3);
            this.panel79.Dock = DockStyle.Right;
            this.panel79.Location = new System.Drawing.Point(550, 0);
            this.panel79.Name = "panel79";
            this.panel79.Size = new Size(0x1bd, 0x1a);
            this.panel79.TabIndex = 0;
            this.navigator_Page3.Dock = DockStyle.Bottom;
            this.navigator_Page3.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page3.Name = "navigator_Page3";
            this.navigator_Page3.PageSize = 20;
            this.navigator_Page3.RowCount = 0;
            this.navigator_Page3.Size = new Size(0x1bd, 0x12);
            this.navigator_Page3.TabIndex = 0;
            this.navigator_Page3.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page3_OnLoadViewStatus);
            this.panel76.Dock = DockStyle.Bottom;
            this.panel76.Location = new System.Drawing.Point(3, 0x1cb);
            this.panel76.Name = "panel76";
            this.panel76.Size = new Size(0x3e3, 5);
            this.panel76.TabIndex = 8;
            this.pan_GuestSearch.Controls.Add(this.panel68);
            this.pan_GuestSearch.Controls.Add(this.panel69);
            this.pan_GuestSearch.Controls.Add(this.panel70);
            this.pan_GuestSearch.Controls.Add(this.panel71);
            this.pan_GuestSearch.Controls.Add(this.panel72);
            this.pan_GuestSearch.Controls.Add(this.panel73);
            this.pan_GuestSearch.Controls.Add(this.panel74);
            this.pan_GuestSearch.Controls.Add(this.panel75);
            this.pan_GuestSearch.Dock = DockStyle.Top;
            this.pan_GuestSearch.Location = new System.Drawing.Point(3, 0x2d);
            this.pan_GuestSearch.Name = "pan_GuestSearch";
            this.pan_GuestSearch.Size = new Size(0x3e3, 0x1b);
            this.pan_GuestSearch.TabIndex = 7;
            this.pan_GuestSearch.Visible = false;
            this.panel68.Controls.Add(this.drp_GuestType);
            this.panel68.Dock = DockStyle.Left;
            this.panel68.Location = new System.Drawing.Point(0x2ca, 0);
            this.panel68.Name = "panel68";
            this.panel68.Size = new Size(0x92, 0x1b);
            this.panel68.TabIndex = 13;
            this.drp_GuestType.FormattingEnabled = true;
            this.drp_GuestType.Items.AddRange(new object[] { "请选择", "个人", "公司" });
            this.drp_GuestType.Location = new System.Drawing.Point(3, 3);
            this.drp_GuestType.Name = "drp_GuestType";
            this.drp_GuestType.Size = new Size(140, 20);
            this.drp_GuestType.TabIndex = 0;
            this.panel69.Controls.Add(this.lbl_GuestType);
            this.panel69.Dock = DockStyle.Left;
            this.panel69.Location = new System.Drawing.Point(0x285, 0);
            this.panel69.Name = "panel69";
            this.panel69.Size = new Size(0x45, 0x1b);
            this.panel69.TabIndex = 12;
            this.lbl_GuestType.AutoSize = true;
            this.lbl_GuestType.Location = new System.Drawing.Point(5, 7);
            this.lbl_GuestType.Name = "lbl_GuestType";
            this.lbl_GuestType.Size = new Size(0x3b, 12);
            this.lbl_GuestType.TabIndex = 0;
            this.lbl_GuestType.Text = "客户类型:";
            this.panel70.Controls.Add(this.drp_GuestGrade);
            this.panel70.Dock = DockStyle.Left;
            this.panel70.Location = new System.Drawing.Point(0x1f3, 0);
            this.panel70.Name = "panel70";
            this.panel70.Size = new Size(0x92, 0x1b);
            this.panel70.TabIndex = 11;
            this.drp_GuestGrade.DisplayMember = "Name";
            this.drp_GuestGrade.DropDownStyle = ComboBoxStyle.DropDownList;
            this.drp_GuestGrade.FormattingEnabled = true;
            this.drp_GuestGrade.Location = new System.Drawing.Point(3, 3);
            this.drp_GuestGrade.Name = "drp_GuestGrade";
            this.drp_GuestGrade.SelectValueNew = "";
            this.drp_GuestGrade.Size = new Size(140, 20);
            this.drp_GuestGrade.TabIndex = 0;
            this.drp_GuestGrade.ValueMember = "Value";
            this.panel71.Controls.Add(this.lbl_GuestGradeType);
            this.panel71.Dock = DockStyle.Left;
            this.panel71.Location = new System.Drawing.Point(430, 0);
            this.panel71.Name = "panel71";
            this.panel71.Size = new Size(0x45, 0x1b);
            this.panel71.TabIndex = 10;
            this.lbl_GuestGradeType.AutoSize = true;
            this.lbl_GuestGradeType.Location = new System.Drawing.Point(5, 7);
            this.lbl_GuestGradeType.Name = "lbl_GuestGradeType";
            this.lbl_GuestGradeType.Size = new Size(0x3b, 12);
            this.lbl_GuestGradeType.TabIndex = 0;
            this.lbl_GuestGradeType.Text = "折扣类型:";
            this.panel72.Controls.Add(this.txt_Moble);
            this.panel72.Dock = DockStyle.Left;
            this.panel72.Location = new System.Drawing.Point(0x11c, 0);
            this.panel72.Name = "panel72";
            this.panel72.Size = new Size(0x92, 0x1b);
            this.panel72.TabIndex = 9;
            this.txt_Moble.Location = new System.Drawing.Point(5, 3);
            this.txt_Moble.Name = "txt_Moble";
            this.txt_Moble.Size = new Size(0x89, 0x15);
            this.txt_Moble.TabIndex = 0;
            this.panel73.Controls.Add(this.lbl_Moble);
            this.panel73.Dock = DockStyle.Left;
            this.panel73.Location = new System.Drawing.Point(0xd7, 0);
            this.panel73.Name = "panel73";
            this.panel73.Size = new Size(0x45, 0x1b);
            this.panel73.TabIndex = 8;
            this.lbl_Moble.AutoSize = true;
            this.lbl_Moble.Location = new System.Drawing.Point(5, 7);
            this.lbl_Moble.Name = "lbl_Moble";
            this.lbl_Moble.Size = new Size(0x3b, 12);
            this.lbl_Moble.TabIndex = 0;
            this.lbl_Moble.Text = "手机号码:";
            this.panel74.Controls.Add(this.txt_GuestDName);
            this.panel74.Dock = DockStyle.Left;
            this.panel74.Location = new System.Drawing.Point(0x45, 0);
            this.panel74.Name = "panel74";
            this.panel74.Size = new Size(0x92, 0x1b);
            this.panel74.TabIndex = 7;
            this.txt_GuestDName.Location = new System.Drawing.Point(5, 3);
            this.txt_GuestDName.Name = "txt_GuestDName";
            this.txt_GuestDName.Size = new Size(0x89, 0x15);
            this.txt_GuestDName.TabIndex = 0;
            this.panel75.Controls.Add(this.label12);
            this.panel75.Dock = DockStyle.Left;
            this.panel75.Location = new System.Drawing.Point(0, 0);
            this.panel75.Name = "panel75";
            this.panel75.Size = new Size(0x45, 0x1b);
            this.panel75.TabIndex = 6;
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(5, 7);
            this.label12.Name = "label12";
            this.label12.Size = new Size(0x3b, 12);
            this.label12.TabIndex = 0;
            this.label12.Text = "客户名称:";
            this.panel66.Dock = DockStyle.Top;
            this.panel66.Location = new System.Drawing.Point(3, 0x25);
            this.panel66.Name = "panel66";
            this.panel66.Size = new Size(0x3e3, 8);
            this.panel66.TabIndex = 5;
            this.panel52.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel52.Controls.Add(this.panel63);
            this.panel52.Controls.Add(this.panel62);
            this.panel52.Controls.Add(this.panel53);
            this.panel52.Controls.Add(this.panel61);
            this.panel52.Controls.Add(this.panel64);
            this.panel52.Controls.Add(this.panel65);
            this.panel52.Dock = DockStyle.Top;
            this.panel52.Location = new System.Drawing.Point(3, 11);
            this.panel52.Name = "panel52";
            this.panel52.Size = new Size(0x3e3, 0x1a);
            this.panel52.TabIndex = 4;
            this.panel63.Controls.Add(this.btn_PrintKeHuGouHuo);
            this.panel63.Dock = DockStyle.Right;
            this.panel63.Location = new System.Drawing.Point(0x27f, 3);
            this.panel63.Name = "panel63";
            this.panel63.Size = new Size(0x59, 20);
            this.panel63.TabIndex = 0x11;
            this.btn_PrintKeHuGouHuo.Dock = DockStyle.Right;
            this.btn_PrintKeHuGouHuo.Location = new System.Drawing.Point(14, 0);
            this.btn_PrintKeHuGouHuo.Name = "btn_PrintKeHuGouHuo";
            this.btn_PrintKeHuGouHuo.Size = new Size(0x4b, 20);
            this.btn_PrintKeHuGouHuo.TabIndex = 1;
            this.btn_PrintKeHuGouHuo.Text = "打 印";
            this.btn_PrintKeHuGouHuo.UseVisualStyleBackColor = true;
            this.btn_PrintKeHuGouHuo.Click += new EventHandler(this.btn_PrintKeHuGouHuo_Click);
            this.panel62.Controls.Add(this.btn_BuildGuestSale);
            this.panel62.Dock = DockStyle.Right;
            this.panel62.Location = new System.Drawing.Point(0x2d8, 3);
            this.panel62.Name = "panel62";
            this.panel62.Size = new Size(0x59, 20);
            this.panel62.TabIndex = 0x10;
            this.btn_BuildGuestSale.Dock = DockStyle.Right;
            this.btn_BuildGuestSale.Location = new System.Drawing.Point(14, 0);
            this.btn_BuildGuestSale.Name = "btn_BuildGuestSale";
            this.btn_BuildGuestSale.Size = new Size(0x4b, 20);
            this.btn_BuildGuestSale.TabIndex = 0;
            this.btn_BuildGuestSale.Text = "生成报表";
            this.btn_BuildGuestSale.UseVisualStyleBackColor = true;
            this.btn_BuildGuestSale.Click += new EventHandler(this.btn_BuildGuestSale_Click);
            this.panel53.Controls.Add(this.btn_GuestSearch);
            this.panel53.Dock = DockStyle.Right;
            this.panel53.Location = new System.Drawing.Point(0x331, 3);
            this.panel53.Name = "panel53";
            this.panel53.Size = new Size(0x59, 20);
            this.panel53.TabIndex = 15;
            this.btn_GuestSearch.Dock = DockStyle.Right;
            this.btn_GuestSearch.Location = new System.Drawing.Point(14, 0);
            this.btn_GuestSearch.Name = "btn_GuestSearch";
            this.btn_GuestSearch.Size = new Size(0x4b, 20);
            this.btn_GuestSearch.TabIndex = 1;
            this.btn_GuestSearch.Text = "查 询";
            this.btn_GuestSearch.UseVisualStyleBackColor = true;
            this.btn_GuestSearch.Click += new EventHandler(this.btn_GuestSearch_Click);
            this.panel61.Controls.Add(this.btn_GuestSearchHidden);
            this.panel61.Dock = DockStyle.Right;
            this.panel61.Location = new System.Drawing.Point(0x38a, 3);
            this.panel61.Name = "panel61";
            this.panel61.Size = new Size(0x59, 20);
            this.panel61.TabIndex = 14;
            this.btn_GuestSearchHidden.Dock = DockStyle.Right;
            this.btn_GuestSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btn_GuestSearchHidden.Name = "btn_GuestSearchHidden";
            this.btn_GuestSearchHidden.Size = new Size(0x4b, 20);
            this.btn_GuestSearchHidden.TabIndex = 0;
            this.btn_GuestSearchHidden.Text = "显示查询";
            this.btn_GuestSearchHidden.UseVisualStyleBackColor = true;
            this.btn_GuestSearchHidden.Click += new EventHandler(this.btn_GuestSearchHidden_Click);
            this.panel64.Dock = DockStyle.Bottom;
            this.panel64.Location = new System.Drawing.Point(0, 0x17);
            this.panel64.Name = "panel64";
            this.panel64.Size = new Size(0x3e3, 3);
            this.panel64.TabIndex = 1;
            this.panel65.Dock = DockStyle.Top;
            this.panel65.Location = new System.Drawing.Point(0, 0);
            this.panel65.Name = "panel65";
            this.panel65.Size = new Size(0x3e3, 3);
            this.panel65.TabIndex = 0;
            this.panel49.Dock = DockStyle.Top;
            this.panel49.Location = new System.Drawing.Point(3, 3);
            this.panel49.Name = "panel49";
            this.panel49.Size = new Size(0x3e3, 8);
            this.panel49.TabIndex = 3;
            this.tab_Sltj.Controls.Add(this.DataGridSendGoods);
            this.tab_Sltj.Controls.Add(this.panel102);
            this.tab_Sltj.Controls.Add(this.panel99);
            this.tab_Sltj.Controls.Add(this.panel98);
            this.tab_Sltj.Controls.Add(this.pan_SendGoodSearch);
            this.tab_Sltj.Controls.Add(this.panel88);
            this.tab_Sltj.Controls.Add(this.panel81);
            this.tab_Sltj.Controls.Add(this.panel67);
            this.tab_Sltj.Location = new System.Drawing.Point(4, 0x15);
            this.tab_Sltj.Name = "tab_Sltj";
            this.tab_Sltj.Padding = new Padding(3);
            this.tab_Sltj.Size = new Size(0x3e9, 0x1d3);
            this.tab_Sltj.TabIndex = 4;
            this.tab_Sltj.Text = "送礼统计";
            this.tab_Sltj.UseVisualStyleBackColor = true;
            this.DataGridSendGoods.AllowUserToAddRows = false;
            this.DataGridSendGoods.AllowUserToDeleteRows = false;
            style44.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style44.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridSendGoods.AlternatingRowsDefaultCellStyle = style44;
            this.DataGridSendGoods.BackgroundColor = Color.WhiteSmoke;
            this.DataGridSendGoods.BorderStyle = BorderStyle.None;
            style45.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style45.BackColor = Color.White;
            style45.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style45.ForeColor = SystemColors.WindowText;
            style45.SelectionBackColor = SystemColors.Highlight;
            style45.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridSendGoods.ColumnHeadersDefaultCellStyle = style45;
            this.DataGridSendGoods.Columns.AddRange(new DataGridViewColumn[] { this.dataGridViewTextBoxColumn15, this.dataGridViewTextBoxColumn16, this.dataGridViewTextBoxColumn17, this.dataGridViewTextBoxColumn18, this.dataGridViewTextBoxColumn19, this.dataGridViewTextBoxColumn20, this.dataGridViewTextBoxColumn24, this.dataGridViewTextBoxColumn25, this.SendUserId, this.dataGridViewTextBoxColumn28 });
            style46.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style46.BackColor = SystemColors.Window;
            style46.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style46.ForeColor = SystemColors.ControlText;
            style46.SelectionBackColor = SystemColors.Highlight;
            style46.SelectionForeColor = SystemColors.HighlightText;
            style46.WrapMode = DataGridViewTriState.False;
            this.DataGridSendGoods.DefaultCellStyle = style46;
            this.DataGridSendGoods.Dock = DockStyle.Fill;
            this.DataGridSendGoods.EnableHeadersVisualStyles = false;
            this.DataGridSendGoods.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridSendGoods.Location = new System.Drawing.Point(3, 0x48);
            this.DataGridSendGoods.Name = "DataGridSendGoods";
            style47.Alignment = DataGridViewContentAlignment.BottomCenter;
            style47.BackColor = Color.White;
            style47.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style47.ForeColor = SystemColors.WindowText;
            style47.SelectionBackColor = SystemColors.Highlight;
            style47.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridSendGoods.RowHeadersDefaultCellStyle = style47;
            this.DataGridSendGoods.RowHeadersVisible = false;
            style48.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridSendGoods.RowsDefaultCellStyle = style48;
            this.DataGridSendGoods.RowTemplate.Height = 0x17;
            this.DataGridSendGoods.Size = new Size(0x3e3, 0x15f);
            this.DataGridSendGoods.TabIndex = 13;
            this.dataGridViewTextBoxColumn15.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn15.DataPropertyName = "OrdersId";
            style49.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style49.BackColor = Color.White;
            this.dataGridViewTextBoxColumn15.DefaultCellStyle = style49;
            this.dataGridViewTextBoxColumn15.HeaderText = "订单id";
            this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
            this.dataGridViewTextBoxColumn15.ReadOnly = true;
            this.dataGridViewTextBoxColumn15.Visible = false;
            this.dataGridViewTextBoxColumn16.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn16.DataPropertyName = "OrderNum";
            style50.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style50.BackColor = Color.White;
            this.dataGridViewTextBoxColumn16.DefaultCellStyle = style50;
            this.dataGridViewTextBoxColumn16.HeaderText = "销售单据号 ";
            this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
            this.dataGridViewTextBoxColumn16.ReadOnly = true;
            this.dataGridViewTextBoxColumn17.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn17.DataPropertyName = "LotNum";
            style51.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style51.BackColor = Color.White;
            this.dataGridViewTextBoxColumn17.DefaultCellStyle = style51;
            this.dataGridViewTextBoxColumn17.HeaderText = "批号";
            this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
            this.dataGridViewTextBoxColumn17.ReadOnly = true;
            this.dataGridViewTextBoxColumn18.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn18.DataPropertyName = "GuestId";
            style52.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style52.BackColor = Color.White;
            this.dataGridViewTextBoxColumn18.DefaultCellStyle = style52;
            this.dataGridViewTextBoxColumn18.HeaderText = "客户";
            this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
            this.dataGridViewTextBoxColumn18.ReadOnly = true;
            this.dataGridViewTextBoxColumn19.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn19.DataPropertyName = "CommName";
            style53.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style53.BackColor = Color.White;
            this.dataGridViewTextBoxColumn19.DefaultCellStyle = style53;
            this.dataGridViewTextBoxColumn19.HeaderText = "商品名称";
            this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
            this.dataGridViewTextBoxColumn19.ReadOnly = true;
            this.dataGridViewTextBoxColumn20.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn20.DataPropertyName = "AmoutUnit";
            style54.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style54.BackColor = Color.White;
            this.dataGridViewTextBoxColumn20.DefaultCellStyle = style54;
            this.dataGridViewTextBoxColumn20.HeaderText = "单位";
            this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
            this.dataGridViewTextBoxColumn20.ReadOnly = true;
            this.dataGridViewTextBoxColumn24.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn24.DataPropertyName = "Cost";
            this.dataGridViewTextBoxColumn24.HeaderText = "成本价";
            this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
            this.dataGridViewTextBoxColumn25.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn25.DataPropertyName = "Amount";
            this.dataGridViewTextBoxColumn25.HeaderText = "数量";
            this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
            this.SendUserId.DataPropertyName = "UserId";
            this.SendUserId.HeaderText = "送礼人";
            this.SendUserId.Name = "SendUserId";
            this.dataGridViewTextBoxColumn28.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn28.DataPropertyName = "CreateTime";
            this.dataGridViewTextBoxColumn28.HeaderText = "送礼时间";
            this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
            this.panel102.Dock = DockStyle.Bottom;
            this.panel102.Location = new System.Drawing.Point(3, 0x1a7);
            this.panel102.Name = "panel102";
            this.panel102.Size = new Size(0x3e3, 10);
            this.panel102.TabIndex = 11;
            this.panel99.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel99.Controls.Add(this.panel100);
            this.panel99.Controls.Add(this.panel101);
            this.panel99.Dock = DockStyle.Bottom;
            this.panel99.Location = new System.Drawing.Point(3, 0x1b1);
            this.panel99.Name = "panel99";
            this.panel99.Size = new Size(0x3e3, 0x1a);
            this.panel99.TabIndex = 10;
            this.panel100.Controls.Add(this.lblSendWhere);
            this.panel100.Controls.Add(this.label21);
            this.panel100.Dock = DockStyle.Fill;
            this.panel100.Location = new System.Drawing.Point(0, 0);
            this.panel100.Name = "panel100";
            this.panel100.Size = new Size(550, 0x1a);
            this.panel100.TabIndex = 1;
            this.lblSendWhere.AutoSize = true;
            this.lblSendWhere.Location = new System.Drawing.Point(0x197, 8);
            this.lblSendWhere.Name = "lblSendWhere";
            this.lblSendWhere.Size = new Size(0, 12);
            this.lblSendWhere.TabIndex = 1;
            this.lblSendWhere.Visible = false;
            this.label21.AutoSize = true;
            this.label21.Dock = DockStyle.Right;
            this.label21.Location = new System.Drawing.Point(550, 0);
            this.label21.Name = "label21";
            this.label21.Size = new Size(0, 12);
            this.label21.TabIndex = 0;
            this.label21.Visible = false;
            this.panel101.Controls.Add(this.navigator_Page4);
            this.panel101.Dock = DockStyle.Right;
            this.panel101.Location = new System.Drawing.Point(550, 0);
            this.panel101.Name = "panel101";
            this.panel101.Size = new Size(0x1bd, 0x1a);
            this.panel101.TabIndex = 0;
            this.navigator_Page4.Dock = DockStyle.Bottom;
            this.navigator_Page4.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page4.Name = "navigator_Page4";
            this.navigator_Page4.PageSize = 20;
            this.navigator_Page4.RowCount = 0;
            this.navigator_Page4.Size = new Size(0x1bd, 0x12);
            this.navigator_Page4.TabIndex = 0;
            this.navigator_Page4.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page4_OnLoadViewStatus);
            this.panel98.Dock = DockStyle.Bottom;
            this.panel98.Location = new System.Drawing.Point(3, 0x1cb);
            this.panel98.Name = "panel98";
            this.panel98.Size = new Size(0x3e3, 5);
            this.panel98.TabIndex = 9;
            this.pan_SendGoodSearch.Controls.Add(this.panel90);
            this.pan_SendGoodSearch.Controls.Add(this.panel91);
            this.pan_SendGoodSearch.Controls.Add(this.panel96);
            this.pan_SendGoodSearch.Controls.Add(this.panel97);
            this.pan_SendGoodSearch.Dock = DockStyle.Top;
            this.pan_SendGoodSearch.Location = new System.Drawing.Point(3, 0x2d);
            this.pan_SendGoodSearch.Name = "pan_SendGoodSearch";
            this.pan_SendGoodSearch.Size = new Size(0x3e3, 0x1b);
            this.pan_SendGoodSearch.TabIndex = 8;
            this.pan_SendGoodSearch.Visible = false;
            this.panel90.Controls.Add(this.label16);
            this.panel90.Controls.Add(this.dateTime_SendGoodEndTime);
            this.panel90.Controls.Add(this.dateTime_SendGoodBeginTime);
            this.panel90.Dock = DockStyle.Fill;
            this.panel90.Location = new System.Drawing.Point(0x11c, 0);
            this.panel90.Name = "panel90";
            this.panel90.Size = new Size(0x2c7, 0x1b);
            this.panel90.TabIndex = 0x19;
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(0x80, 7);
            this.label16.Name = "label16";
            this.label16.Size = new Size(11, 12);
            this.label16.TabIndex = 2;
            this.label16.Text = "-";
            this.dateTime_SendGoodEndTime.Location = new System.Drawing.Point(0x94, 3);
            this.dateTime_SendGoodEndTime.Name = "dateTime_SendGoodEndTime";
            this.dateTime_SendGoodEndTime.Size = new Size(0x77, 0x15);
            this.dateTime_SendGoodEndTime.TabIndex = 1;
            this.dateTime_SendGoodBeginTime.Location = new System.Drawing.Point(3, 3);
            this.dateTime_SendGoodBeginTime.Name = "dateTime_SendGoodBeginTime";
            this.dateTime_SendGoodBeginTime.Size = new Size(0x77, 0x15);
            this.dateTime_SendGoodBeginTime.TabIndex = 0;
            this.panel91.Controls.Add(this.label17);
            this.panel91.Dock = DockStyle.Left;
            this.panel91.Location = new System.Drawing.Point(0xd7, 0);
            this.panel91.Name = "panel91";
            this.panel91.Size = new Size(0x45, 0x1b);
            this.panel91.TabIndex = 0x18;
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(5, 7);
            this.label17.Name = "label17";
            this.label17.Size = new Size(0x3b, 12);
            this.label17.TabIndex = 0;
            this.label17.Text = "送礼时间:";
            this.panel96.Controls.Add(this.txt_SendGuestName);
            this.panel96.Dock = DockStyle.Left;
            this.panel96.Location = new System.Drawing.Point(0x45, 0);
            this.panel96.Name = "panel96";
            this.panel96.Size = new Size(0x92, 0x1b);
            this.panel96.TabIndex = 7;
            this.txt_SendGuestName.Location = new System.Drawing.Point(5, 3);
            this.txt_SendGuestName.Name = "txt_SendGuestName";
            this.txt_SendGuestName.Size = new Size(0x89, 0x15);
            this.txt_SendGuestName.TabIndex = 0;
            this.panel97.Controls.Add(this.label19);
            this.panel97.Dock = DockStyle.Left;
            this.panel97.Location = new System.Drawing.Point(0, 0);
            this.panel97.Name = "panel97";
            this.panel97.Size = new Size(0x45, 0x1b);
            this.panel97.TabIndex = 6;
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(5, 7);
            this.label19.Name = "label19";
            this.label19.Size = new Size(0x3b, 12);
            this.label19.TabIndex = 0;
            this.label19.Text = "客户名称:";
            this.panel88.Dock = DockStyle.Top;
            this.panel88.Location = new System.Drawing.Point(3, 0x25);
            this.panel88.Name = "panel88";
            this.panel88.Size = new Size(0x3e3, 8);
            this.panel88.TabIndex = 6;
            this.panel81.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel81.Controls.Add(this.panel85);
            this.panel81.Controls.Add(this.panel84);
            this.panel81.Controls.Add(this.panel82);
            this.panel81.Controls.Add(this.panel83);
            this.panel81.Controls.Add(this.panel86);
            this.panel81.Controls.Add(this.panel87);
            this.panel81.Dock = DockStyle.Top;
            this.panel81.Location = new System.Drawing.Point(3, 11);
            this.panel81.Name = "panel81";
            this.panel81.Size = new Size(0x3e3, 0x1a);
            this.panel81.TabIndex = 5;
            this.panel85.Controls.Add(this.btn_PrintSend);
            this.panel85.Dock = DockStyle.Right;
            this.panel85.Location = new System.Drawing.Point(0x27f, 3);
            this.panel85.Name = "panel85";
            this.panel85.Size = new Size(0x59, 20);
            this.panel85.TabIndex = 0x11;
            this.btn_PrintSend.Dock = DockStyle.Right;
            this.btn_PrintSend.Location = new System.Drawing.Point(14, 0);
            this.btn_PrintSend.Name = "btn_PrintSend";
            this.btn_PrintSend.Size = new Size(0x4b, 20);
            this.btn_PrintSend.TabIndex = 1;
            this.btn_PrintSend.Text = "打 印";
            this.btn_PrintSend.UseVisualStyleBackColor = true;
            this.btn_PrintSend.Click += new EventHandler(this.btn_PrintSend_Click);
            this.panel84.Controls.Add(this.btn_SendGuest);
            this.panel84.Dock = DockStyle.Right;
            this.panel84.Location = new System.Drawing.Point(0x2d8, 3);
            this.panel84.Name = "panel84";
            this.panel84.Size = new Size(0x59, 20);
            this.panel84.TabIndex = 0x10;
            this.btn_SendGuest.Dock = DockStyle.Right;
            this.btn_SendGuest.Location = new System.Drawing.Point(14, 0);
            this.btn_SendGuest.Name = "btn_SendGuest";
            this.btn_SendGuest.Size = new Size(0x4b, 20);
            this.btn_SendGuest.TabIndex = 0;
            this.btn_SendGuest.Text = "生成报表";
            this.btn_SendGuest.UseVisualStyleBackColor = true;
            this.btn_SendGuest.Click += new EventHandler(this.btn_SendGuest_Click);
            this.panel82.Controls.Add(this.btn_SendGoodsSearch);
            this.panel82.Dock = DockStyle.Right;
            this.panel82.Location = new System.Drawing.Point(0x331, 3);
            this.panel82.Name = "panel82";
            this.panel82.Size = new Size(0x59, 20);
            this.panel82.TabIndex = 15;
            this.btn_SendGoodsSearch.Dock = DockStyle.Right;
            this.btn_SendGoodsSearch.Location = new System.Drawing.Point(14, 0);
            this.btn_SendGoodsSearch.Name = "btn_SendGoodsSearch";
            this.btn_SendGoodsSearch.Size = new Size(0x4b, 20);
            this.btn_SendGoodsSearch.TabIndex = 1;
            this.btn_SendGoodsSearch.Text = "查 询";
            this.btn_SendGoodsSearch.UseVisualStyleBackColor = true;
            this.btn_SendGoodsSearch.Click += new EventHandler(this.btn_SendGoodsSearch_Click);
            this.panel83.Controls.Add(this.btn_SendGoodsSearchHidden);
            this.panel83.Dock = DockStyle.Right;
            this.panel83.Location = new System.Drawing.Point(0x38a, 3);
            this.panel83.Name = "panel83";
            this.panel83.Size = new Size(0x59, 20);
            this.panel83.TabIndex = 14;
            this.btn_SendGoodsSearchHidden.Dock = DockStyle.Right;
            this.btn_SendGoodsSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btn_SendGoodsSearchHidden.Name = "btn_SendGoodsSearchHidden";
            this.btn_SendGoodsSearchHidden.Size = new Size(0x4b, 20);
            this.btn_SendGoodsSearchHidden.TabIndex = 0;
            this.btn_SendGoodsSearchHidden.Text = "显示查询";
            this.btn_SendGoodsSearchHidden.UseVisualStyleBackColor = true;
            this.btn_SendGoodsSearchHidden.Click += new EventHandler(this.btn_SendGoodsSearchHidden_Click);
            this.panel86.Dock = DockStyle.Bottom;
            this.panel86.Location = new System.Drawing.Point(0, 0x17);
            this.panel86.Name = "panel86";
            this.panel86.Size = new Size(0x3e3, 3);
            this.panel86.TabIndex = 1;
            this.panel87.Dock = DockStyle.Top;
            this.panel87.Location = new System.Drawing.Point(0, 0);
            this.panel87.Name = "panel87";
            this.panel87.Size = new Size(0x3e3, 3);
            this.panel87.TabIndex = 0;
            this.panel67.Dock = DockStyle.Top;
            this.panel67.Location = new System.Drawing.Point(3, 3);
            this.panel67.Name = "panel67";
            this.panel67.Size = new Size(0x3e3, 8);
            this.panel67.TabIndex = 4;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new System.Drawing.Point(0x3fb, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x1ec);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new System.Drawing.Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x1ec);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new System.Drawing.Point(0, 0x1f6);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(0x405, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new System.Drawing.Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(0x405, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new System.Drawing.Point(1, 0x200);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(0x405, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new System.Drawing.Point(0x406, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x201);
            this.pan_DockRight.TabIndex = 1;
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x201);
            this.pan_DockLeft.TabIndex = 0;
            this.label1.AutoSize = true;
            this.label1.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.label1.Font = new System.Drawing.Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.label1.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.label1.Location = new System.Drawing.Point(6, 8);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x5b, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "销售统计报表";
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new System.Drawing.Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x407, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.label1);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new System.Drawing.Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x3e3, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new System.Drawing.Point(0x402, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.saveFileDialog.DefaultExt = "xls";
            this.saveFileDialog.Filter = "报表文件|*.xls";
            this.saveFileDialogRiBao.DefaultExt = "xls";
            this.saveFileDialogRiBao.Filter = "报表文件|*.xls";
            this.saveFileDialogSaleUser.DefaultExt = "xls";
            this.saveFileDialogSaleUser.Filter = "报表文件|*.xls";
            this.saveFileDialogGuest.DefaultExt = "xls";
            this.saveFileDialogGuest.Filter = "报表文件|*.xls";
            this.saveFileDialogSendGuest.DefaultExt = "xls";
            this.saveFileDialogSendGuest.Filter = "报表文件|*.xls";
            this.MyPrintDocument.PrintPage += new PrintPageEventHandler(this.MyPrintDocument_PrintPage);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x407, 0x221);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Name = "FrmSalesStatList";
            this.Text = "FrmChain";
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.tabControl1.ResumeLayout(false);
            this.tab_LrTj.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridList).EndInit();
            this.panel10.ResumeLayout(false);
            this.panel12.ResumeLayout(false);
            this.panel12.PerformLayout();
            this.panel11.ResumeLayout(false);
            this.PlSearch.ResumeLayout(false);
            this.panel24.ResumeLayout(false);
            this.panel24.PerformLayout();
            this.panel25.ResumeLayout(false);
            this.panel25.PerformLayout();
            this.panel18.ResumeLayout(false);
            this.panel18.PerformLayout();
            this.panel21.ResumeLayout(false);
            this.panel21.PerformLayout();
            this.panel19.ResumeLayout(false);
            this.panel19.PerformLayout();
            this.panel20.ResumeLayout(false);
            this.panel20.PerformLayout();
            this.panel22.ResumeLayout(false);
            this.panel22.PerformLayout();
            this.panel23.ResumeLayout(false);
            this.panel23.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel92.ResumeLayout(false);
            this.panel89.ResumeLayout(false);
            this.panel7.ResumeLayout(false);
            this.panel16.ResumeLayout(false);
            this.tab_Rbb.ResumeLayout(false);
            ((ISupportInitialize) this.RiBaoDataGridList).EndInit();
            this.panel41.ResumeLayout(false);
            this.panel42.ResumeLayout(false);
            this.panel42.PerformLayout();
            this.panel43.ResumeLayout(false);
            this.panel_RiBaoBiaoSearch.ResumeLayout(false);
            this.panel35.ResumeLayout(false);
            this.panel35.PerformLayout();
            this.panel36.ResumeLayout(false);
            this.panel36.PerformLayout();
            this.panel37.ResumeLayout(false);
            this.panel37.PerformLayout();
            this.panel38.ResumeLayout(false);
            this.panel38.PerformLayout();
            this.panel39.ResumeLayout(false);
            this.panel39.PerformLayout();
            this.panel40.ResumeLayout(false);
            this.panel40.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.panel28.ResumeLayout(false);
            this.panel27.ResumeLayout(false);
            this.panel6.ResumeLayout(false);
            this.panel14.ResumeLayout(false);
            this.tab_Ywtj.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridSalesP).EndInit();
            this.panel57.ResumeLayout(false);
            this.panel58.ResumeLayout(false);
            this.panel58.PerformLayout();
            this.panel59.ResumeLayout(false);
            this.pan_SalesP.ResumeLayout(false);
            this.panel50.ResumeLayout(false);
            this.panel50.PerformLayout();
            this.panel51.ResumeLayout(false);
            this.panel51.PerformLayout();
            this.panel54.ResumeLayout(false);
            this.panel54.PerformLayout();
            this.panel55.ResumeLayout(false);
            this.panel55.PerformLayout();
            this.panel17.ResumeLayout(false);
            this.panel45.ResumeLayout(false);
            this.panel34.ResumeLayout(false);
            this.panel26.ResumeLayout(false);
            this.panel33.ResumeLayout(false);
            this.tab_GHFX.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridListGuest).EndInit();
            this.panel77.ResumeLayout(false);
            this.panel78.ResumeLayout(false);
            this.panel78.PerformLayout();
            this.panel79.ResumeLayout(false);
            this.pan_GuestSearch.ResumeLayout(false);
            this.panel68.ResumeLayout(false);
            this.panel69.ResumeLayout(false);
            this.panel69.PerformLayout();
            this.panel70.ResumeLayout(false);
            this.panel71.ResumeLayout(false);
            this.panel71.PerformLayout();
            this.panel72.ResumeLayout(false);
            this.panel72.PerformLayout();
            this.panel73.ResumeLayout(false);
            this.panel73.PerformLayout();
            this.panel74.ResumeLayout(false);
            this.panel74.PerformLayout();
            this.panel75.ResumeLayout(false);
            this.panel75.PerformLayout();
            this.panel52.ResumeLayout(false);
            this.panel63.ResumeLayout(false);
            this.panel62.ResumeLayout(false);
            this.panel53.ResumeLayout(false);
            this.panel61.ResumeLayout(false);
            this.tab_Sltj.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridSendGoods).EndInit();
            this.panel99.ResumeLayout(false);
            this.panel100.ResumeLayout(false);
            this.panel100.PerformLayout();
            this.panel101.ResumeLayout(false);
            this.pan_SendGoodSearch.ResumeLayout(false);
            this.panel90.ResumeLayout(false);
            this.panel90.PerformLayout();
            this.panel91.ResumeLayout(false);
            this.panel91.PerformLayout();
            this.panel96.ResumeLayout(false);
            this.panel96.PerformLayout();
            this.panel97.ResumeLayout(false);
            this.panel97.PerformLayout();
            this.panel81.ResumeLayout(false);
            this.panel85.ResumeLayout(false);
            this.panel84.ResumeLayout(false);
            this.panel82.ResumeLayout(false);
            this.panel83.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void InitPage()
        {
            this.navigator_Page.PageSize = 0x11;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.Init();
            this.navigator_Page1.PageSize = 0x11;
            this.navigator_Page1.DataContainer = this.RiBaoDataGridList;
            this.navigator_Page1.Init();
            this.navigator_Page2.PageSize = 0x11;
            this.navigator_Page2.DataContainer = this.DataGridSalesP;
            this.navigator_Page2.Init();
            this.navigator_Page3.PageSize = 0x11;
            this.navigator_Page3.DataContainer = this.DataGridListGuest;
            this.navigator_Page3.Init();
            this.navigator_Page4.PageSize = 0x11;
            this.navigator_Page4.DataContainer = this.DataGridSendGoods;
            this.navigator_Page4.Init();
        }

        protected void MyPrintDocument_PrintPage(object sender, PrintPageEventArgs e)
        {
            if (this.MyDataGridViewPrinter.DrawDataGridView(e.Graphics))
            {
                e.HasMorePages = true;
            }
        }

        private void navigator_Page_OnLoadViewStatus()
        {
            this.SalesDataLoad();
            this.navigator_Page.PageSize = 0x11;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.DataBind();
        }

        private void navigator_Page1_OnLoadViewStatus()
        {
            this.RiBaoDataGridLoad();
            this.navigator_Page1.PageSize = 0x11;
            this.navigator_Page1.DataContainer = this.DataGridList;
            this.navigator_Page1.DataBind();
        }

        private void navigator_Page2_OnLoadViewStatus()
        {
            this.SalesPerformanceLoad();
            this.navigator_Page2.PageSize = 0x11;
            this.navigator_Page2.DataContainer = this.DataGridSalesP;
            this.navigator_Page2.DataBind();
        }

        private void navigator_Page3_OnLoadViewStatus()
        {
            this.GuestLoad();
            this.navigator_Page3.PageSize = 0x11;
            this.navigator_Page3.DataContainer = this.DataGridListGuest;
            this.navigator_Page3.DataBind();
        }

        private void navigator_Page4_OnLoadViewStatus()
        {
            this.SendsDataLoad();
            this.navigator_Page4.PageSize = 0x11;
            this.navigator_Page4.DataContainer = this.DataGridSendGoods;
            this.navigator_Page4.DataBind();
        }

        private void RiBaoDataGridList_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                FrmOrdersVeiw veiw = new FrmOrdersVeiw(int.Parse(this.RiBaoDataGridList.Rows[e.RowIndex].Cells[0].Value.ToString()));
                if (DialogResult.OK == veiw.ShowDialog())
                {
                }
                veiw.Dispose();
            }
        }

        private void RiBaoDataGridLoad()
        {
            try
            {
                System.Data.DataTable dt = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page1.PageCurrent;
                if (this.lbl_RiBaoSWhere.Text != "")
                {
                    dt = OrdersBll.GetPageList(PublicAppliction.PageCount, pageCurrent, this.lbl_RiBaoSWhere.Text);
                }
                else
                {
                    dt = OrdersBll.GetPageList(PublicAppliction.PageCount, pageCurrent, "");
                }
                int num2 = GetTableColCount.ReturnTableColCount("Systems", "T_Orders", this.lbl_RiBaoSWhere.Text);
                this.RiBaoDataGridList.AutoGenerateColumns = false;
                this.RiBaoDataZhuanHuan(ref dt);
                this.RiBaoDataGridList.DataSource = dt;
                this.navigator_Page1.DataSource = dt;
                this.navigator_Page1.RowCount = num2;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        protected void RiBaoDataZhuanHuan(ref System.Data.DataTable dt)
        {
            dt.Columns["GuestId"].ColumnName = "GuestId1";
            dt.Columns["UserId"].ColumnName = "UserId1";
            dt.Columns.Add("GuestId");
            dt.Columns.Add("UserId");
            foreach (DataRow row in dt.Rows)
            {
                GuestEnt model = GuestBll.GetModel(int.Parse(row["GuestId1"].ToString()));
                if (model != null)
                {
                    row["GuestId"] = model.GuestName;
                }
                DataRow[] rowArray = PublicAppliction.UserDt.Select("userid=" + row["UserId1"].ToString());
                if (rowArray.Length > 0)
                {
                    row["UserId"] = rowArray[0]["UserName"].ToString();
                }
            }
            dt.Columns.Remove("GuestId1");
            dt.Columns.Remove("UserId1");
        }

        private void SalesDataLoad()
        {
            try
            {
                System.Data.DataTable dt = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page.PageCurrent;
                if (this.lblSalesWhere.Text != "")
                {
                    dt = OrdersCommBll.SearchData(0x11, pageCurrent, this.lblSalesWhere.Text);
                }
                else
                {
                    dt = OrdersCommBll.SearchData(0x11, pageCurrent, "");
                }
                int searchDataCount = OrdersCommBll.GetSearchDataCount(this.lblSalesWhere.Text);
                this.DataGridList.AutoGenerateColumns = false;
                this.DataZhuanHuan(ref dt);
                this.DataGridList.DataSource = dt;
                this.navigator_Page.DataSource = dt;
                this.navigator_Page.RowCount = searchDataCount;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private void SalesPerformanceLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page2.PageCurrent;
                if (this.lbl_SalesSSWhere.Text != "")
                {
                    table = UserBll.SearchSaleData(0x11, pageCurrent, this.lbl_SalesSSWhere.Text);
                }
                else
                {
                    table = UserBll.SearchSaleData(0x11, pageCurrent, "");
                }
                int num2 = GetTableColCount.ReturnTableColCount("Systems", "T_User", "");
                this.DataGridSalesP.AutoGenerateColumns = false;
                this.DataGridSalesP.DataSource = table;
                this.navigator_Page2.DataSource = table;
                this.navigator_Page2.RowCount = num2;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private void SendsDataLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page4.PageCurrent;
                if (this.lbl_GustSWhere.Text != "")
                {
                    table = OrdersBll.SelectSendsPresent(0x11, pageCurrent, this.lblSendWhere.Text);
                }
                else
                {
                    table = OrdersBll.SelectSendsPresent(0x11, pageCurrent, "");
                }
                this.DataGridSendGoods.AutoGenerateColumns = false;
                this.DataGridSendGoods.DataSource = table;
                this.navigator_Page4.DataSource = table;
                this.navigator_Page4.RowCount = table.Rows.Count;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private bool SetupTheGuestBuyPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "客户购货分析";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridListGuest, this.MyPrintDocument, true, true, "客户购货分析", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheGuestSendPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "客户送礼统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridSendGoods, this.MyPrintDocument, true, true, "客户送礼统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheLiRunTongJiiPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "销售利润统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridList, this.MyPrintDocument, true, true, "销售利润统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheXiaoShouRiBaoPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "销售日报统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.RiBaoDataGridList, this.MyPrintDocument, true, true, "销售日报统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheXiaoShouYeJiPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "销售员业绩统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridSalesP, this.MyPrintDocument, true, true, "销售员业绩统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private void txt_BeginMoney_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((((e.KeyChar < '0') || (e.KeyChar > '9')) && (e.KeyChar != '\b')) && (e.KeyChar != '.'))
            {
                e.Handled = true;
            }
        }

        private void txt_EndMoney_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((((e.KeyChar < '0') || (e.KeyChar > '9')) && (e.KeyChar != '\b')) && (e.KeyChar != '.'))
            {
                e.Handled = true;
            }
        }

        private void txt_RiBaoBeginTime_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((((e.KeyChar < '0') || (e.KeyChar > '9')) && (e.KeyChar != '\b')) && (e.KeyChar != '.'))
            {
                e.Handled = true;
            }
        }

        private void txt_RiBaoEndTime_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((((e.KeyChar < '0') || (e.KeyChar > '9')) && (e.KeyChar != '\b')) && (e.KeyChar != '.'))
            {
                e.Handled = true;
            }
        }
    }
}

